.wss-form-wrapper {
    max-width: 420px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.wss-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.wss-form-group {
    margin-bottom: 16px;
}

.wss-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.wss-form-group input[type="text"],
.wss-form-group input[type="email"],
.wss-form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.wss-form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.wss-form-footer {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.wss-messages {
    margin-bottom: 16px;
}

.wss-messages .wss-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid #fecaca;
    margin-bottom: 10px;
}

.wss-messages .wss-success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
    margin-bottom: 10px;
}

.wss-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.wss-btn-block {
    display: block;
    width: 100%;
}

.wss-btn-primary {
    background: #6366f1;
    color: #fff;
}

.wss-btn-primary:hover {
    background: #4f46e5;
    color: #fff;
}

.wss-btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.wss-btn-outline:hover {
    background: #6366f1;
    color: #fff;
}

.wss-btn-danger {
    background: #dc2626;
    color: #fff;
}

.wss-btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.wss-btn-current {
    background: #e5e7eb;
    color: #6b7280;
    cursor: default;
}

.wss-btn-free {
    background: #10b981;
    color: #fff;
    cursor: default;
}

.wss-btn-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Pricing */
.wss-pricing {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.wss-pricing h2 {
    margin-bottom: 10px;
}

.wss-pricing-desc {
    color: #666;
    margin-bottom: 30px;
}

.wss-pricing-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.wss-pricing-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    width: 280px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.wss-pricing-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wss-pricing-paid {
    border-color: #6366f1;
    position: relative;
}

.wss-pricing-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.wss-pricing-price {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.wss-pricing-interval {
    font-size: 16px;
    font-weight: 400;
    color: #888;
}

.wss-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.wss-pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.wss-pricing-features li::before {
    content: "✓ ";
    color: #10b981;
    font-weight: 700;
}

.wss-pricing-action {
    margin-top: 20px;
}

/* My Account — Layout */
.wss-account-layout {
    display: flex;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.wss-account-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.wss-account-main {
    flex: 1;
    min-width: 0;
}

/* Sidebar */
.wss-sidebar-user {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
}

.wss-sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.wss-sidebar-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    margin-bottom: 2px;
}

.wss-sidebar-email {
    font-size: 13px;
    color: #888;
    word-break: break-all;
}

.wss-sidebar-nav {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.wss-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.15s;
}

.wss-sidebar-link:last-child {
    border-bottom: none;
}

.wss-sidebar-link:hover {
    background: #f9fafb;
    color: #111;
}

.wss-sidebar-link.active {
    background: #eef2ff;
    color: #6366f1;
    font-weight: 600;
}

.wss-sidebar-logout {
    color: #dc2626;
}

.wss-sidebar-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Main content */
.wss-account-main h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

.wss-account-main h3 {
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 12px;
}

/* Overview grid */
.wss-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.wss-overview-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.wss-overview-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 6px;
}

.wss-overview-value {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wss-remaining {
    color: #6366f1;
}

.wss-remaining-low {
    color: #dc2626;
}

/* Usage section */
.wss-usage-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.wss-usage-section h3 {
    margin-top: 0;
}

.wss-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.wss-progress-large {
    height: 12px;
    margin-bottom: 16px;
}

.wss-progress-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 4px;
    transition: width 0.3s;
}

.wss-usage-text {
    font-size: 14px;
    color: #666;
}

.wss-unlimited-text {
    color: #10b981;
    font-weight: 600;
}

/* Upgrade section */
.wss-upgrade-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
}

.wss-upgrade-section h3 {
    margin-top: 0;
}

.wss-upgrade-section > p {
    color: #666;
    margin-bottom: 16px;
}

.wss-plans-row {
    display: flex;
    gap: 16px;
}

.wss-plan-option {
    flex: 1;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.2s;
}

.wss-plan-option:hover {
    border-color: #6366f1;
}

.wss-plan-option h4 {
    margin: 0 0 8px;
}

.wss-plan-price {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
}

.wss-plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

/* Subscription tab */
.wss-sub-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.wss-sub-header {
    padding: 16px 20px;
    background: #f0fdf4;
    border-bottom: 1px solid #e5e7eb;
}

.wss-sub-details {
    padding: 0 20px;
}

.wss-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.wss-sub-row:last-child {
    border-bottom: none;
}

.wss-sub-row span {
    color: #888;
}

.wss-sub-row code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.wss-sub-actions {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

.wss-sub-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #666;
}

/* Downloads tab */
.wss-downloads-info {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.wss-downloads-stat {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.wss-downloads-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 4px;
}

.wss-downloads-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

.wss-downloads-reached {
    text-align: center;
    padding: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    margin-top: 16px;
}

.wss-downloads-reached p {
    margin-bottom: 12px;
    color: #991b1b;
}

/* Plan badges */
.wss-plan-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

.wss-badge-active {
    background: #dcfce7;
    color: #16a34a;
}

.wss-badge-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wss-account-layout {
        flex-direction: column;
    }

    .wss-account-sidebar {
        width: 100%;
    }

    .wss-sidebar-nav {
        display: flex;
        overflow-x: auto;
    }

    .wss-sidebar-link {
        flex: none;
        padding: 12px 20px;
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid #f3f4f6;
    }

    .wss-overview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wss-plans-row {
        flex-direction: column;
    }

    .wss-downloads-info {
        flex-direction: column;
    }
}

.wss-notice {
    background: #fef3c7;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #fcd34d;
    text-align: center;
}

.wss-downloads-counter {
    font-size: 14px;
    color: #555;
}

.wss-downloads-unlimited {
    color: #10b981;
    font-weight: 600;
}

/* Modal overlay */
.wss-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.wss-modal {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wss-modal h3 {
    margin-top: 0;
}

.wss-modal p {
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .wss-pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .wss-pricing-card {
        width: 100%;
        max-width: 320px;
    }
}
