* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* iOS Safe Area Support */
:root {
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-right: env(safe-area-inset-right);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    min-height: 100vh;
    min-height: calc(100vh + var(--safe-area-inset-top) + var(--safe-area-inset-bottom));
    color: #e2e8f0;
    overflow-x: hidden;
    position: relative;
    /* Extend background into safe areas */
    padding-top: var(--safe-area-inset-top);
    padding-bottom: var(--safe-area-inset-bottom);
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="0.3" fill="%23ffffff" opacity="0.03"/><circle cx="50" cy="10" r="0.4" fill="%23ffffff" opacity="0.04"/><circle cx="10" cy="90" r="0.2" fill="%23ffffff" opacity="0.02"/><circle cx="90" cy="40" r="0.6" fill="%23ffffff" opacity="0.06"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(120, 119, 198, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 119, 198, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(120, 219, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(120, 119, 198, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 119, 198, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(0.5deg); }
    66% { transform: translateY(5px) rotate(-0.5deg); }
}

.app-container {
    min-height: 100vh;
    min-height: calc(100vh - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: var(--safe-area-inset-top);
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(120, 119, 198, 0.1) 0%, 
        rgba(255, 119, 198, 0.05) 50%, 
        rgba(120, 219, 255, 0.1) 100%);
    pointer-events: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.8);
    transition: all 0.3s ease;
}

.nav-brand:hover {
    transform: translateY(-1px);
    text-shadow: 0 0 30px rgba(120, 119, 198, 1);
}

.logo {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #7877c6, #ff77c6, #78dbff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(120, 119, 198, 0.5));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.language-selector {
    position: relative;
}

.language-dropdown {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
    min-width: 120px;
}

.language-dropdown:hover {
    border-color: rgba(120, 119, 198, 0.5);
    background: rgba(25, 25, 35, 0.9);
}

.language-dropdown:focus {
    border-color: rgba(120, 119, 198, 0.7);
    box-shadow: 0 0 0 2px rgba(120, 119, 198, 0.2);
}

.language-dropdown option {
    background: rgba(15, 15, 25, 0.95);
    color: #e2e8f0;
    padding: 0.5rem;
}

.nav-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.nav-btn:hover {
    background: rgba(120, 119, 198, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(120, 119, 198, 0.2);
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn.active {
    background: linear-gradient(135deg, #7877c6, #ff77c6);
    color: white;
    box-shadow: 0 4px 16px rgba(120, 119, 198, 0.4);
    transform: translateY(-1px);
}

/* Pages */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

/* Auth Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.auth-header p {
    color: #94a3b8;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    position: relative;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(120, 119, 198, 0.6);
    box-shadow: 0 0 0 4px rgba(120, 119, 198, 0.1), 0 4px 20px rgba(120, 119, 198, 0.2);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.6);
    transition: color 0.3s ease;
}

.form-group input:focus::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 50%, #78dbff 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(120, 119, 198, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(120, 119, 198, 0.5);
    background-position: 100% 0;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    border: 2px solid rgba(120, 119, 198, 0.3);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.btn-secondary:hover {
    background: rgba(30, 30, 40, 0.9);
    border-color: rgba(120, 119, 198, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: #94a3b8;
}

.auth-switch a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

/* Dashboard */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #7877c6 30%, #ff77c6 60%, #78dbff 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: gradientShift 8s ease-in-out infinite;
    letter-spacing: -0.02em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.page-header p {
    color: rgba(226, 232, 240, 0.8);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.05) 0%, rgba(255, 119, 198, 0.02) 50%, rgba(120, 219, 255, 0.05) 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    border-color: rgba(120, 119, 198, 0.4);
}

.stat-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 50%, #78dbff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(120, 119, 198, 0.3);
    position: relative;
    z-index: 1;
    color: white;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f1f5f9;
}

.card {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.3), rgba(255, 119, 198, 0.2), rgba(120, 219, 255, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: subtract;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(120, 119, 198, 0.4);
}

.card h2 {
    margin-bottom: 1.5rem;
    color: #f1f5f9;
    font-size: 1.5rem;
}

.empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 4rem 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7877c6, #ff77c6);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.1; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.2; }
}

/* Subscriptions */
.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.subscription-card {
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7877c6, #ff77c6, #78dbff);
    opacity: 0.8;
}

.subscription-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    border-color: rgba(120, 119, 198, 0.4);
}

.subscription-card:hover::before {
    height: 3px;
    opacity: 1;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.sub-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f1f5f9;
}

.sub-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #60a5fa;
}

.sub-cycle {
    color: #94a3b8;
    font-size: 0.9rem;
}

.sub-next-billing {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Payment Methods */
.payment-methods-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-card {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-info h3 {
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.payment-type {
    color: #94a3b8;
    font-size: 0.9rem;
}

.default-badge {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1e293b;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: #f1f5f9;
    font-size: 1.3rem;
}

.close-btn {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover {
    color: #ffffff;
    background: rgba(255, 119, 198, 0.2);
    border-color: rgba(255, 119, 198, 0.4);
    transform: scale(1.1);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    min-width: 140px;
    margin-top: 0;
}

/* Recent subscription items */
.recent-sub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #374151;
}

.recent-sub-item:last-child {
    border-bottom: none;
}

.recent-sub-item .sub-name {
    font-weight: 500;
    color: #e2e8f0;
}

.recent-sub-item .sub-price {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Payment methods usage */
.payment-method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(120, 119, 198, 0.1);
}

.payment-method-item:last-child {
    border-bottom: none;
}

.payment-method-item .method-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-method-item .method-name {
    font-weight: 500;
    color: #e2e8f0;
}

.payment-method-item .method-details {
    color: #94a3b8;
    font-size: 0.9rem;
}

.payment-method-item .usage-stats {
    text-align: right;
}

.payment-method-item .usage-count {
    font-weight: 600;
    color: #7877c6;
}

.payment-method-item .usage-amount {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Upcoming renewals */
.renewal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(120, 119, 198, 0.1);
}

.renewal-item:last-child {
    border-bottom: none;
}

.renewal-item .renewal-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.renewal-item .service-name {
    font-weight: 500;
    color: #e2e8f0;
}

.renewal-item .renewal-price {
    color: #94a3b8;
    font-size: 0.9rem;
}

.renewal-item .renewal-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.renewal-item .date-text {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.renewal-item .days-left {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.renewal-item .days-left.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.renewal-item .days-left.soon {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.renewal-item .days-left.normal {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* Settings page */
.settings-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
}

@media (min-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .settings-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Account Information */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.info-value {
    padding: 0.75rem 1rem;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.95rem;
    word-break: break-word;
}

/* Danger Zone */
.danger-zone {
    grid-column: 1 / -1;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.danger-zone::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.3)) !important;
}

/* Data Management Section */
.data-management {
    grid-column: 1 / -1;
}

.data-management-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.action-info h3 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.action-info p {
    color: #94a3b8;
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 400px;
}

.btn-secondary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.danger-zone h2 {
    color: #fca5a5;
    margin-bottom: 1.5rem;
}

.danger-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.danger-info h3 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.danger-info p {
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.danger-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.danger-list li {
    color: #94a3b8;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.danger-list li::before {
    content: '•';
    color: #ef4444;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 140px;
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-danger:hover:not(:disabled)::before {
    left: 100%;
}

.btn-danger:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

/* Warning Message */
.warning-message {
    text-align: center;
    margin-bottom: 1.5rem;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.warning-message h4 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.warning-message p {
    color: #94a3b8;
    line-height: 1.5;
}

.confirmation-details {
    margin-top: 1.5rem;
}

.confirmation-details p {
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .data-management-content,
    .action-item {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .action-info p {
        max-width: none;
    }
    
    .btn-secondary {
        align-self: flex-start;
    }
    
    .data-management {
        grid-column: 1;
    }

    .danger-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .danger-zone {
        grid-column: 1;
    }
}

/* Mobile elements - HIDDEN ON DESKTOP */
.mobile-menu-btn {
    display: none;
}

.mobile-menu-dropdown {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    /* Hide regular nav menu on mobile */
    .nav-menu {
        display: none !important;
    }
    
    /* Show mobile menu elements on mobile */
    .mobile-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        flex-direction: column;
        gap: 4px;
        position: relative;
    }
    
    .hamburger-line {
        width: 24px;
        height: 2px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .mobile-menu-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 999;
        display: none;
    }
    
    .mobile-menu-dropdown.show {
        display: flex !important;
    }
    
    .container {
        padding: 5rem 1rem 2rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error message */
.error-message {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Success message */
.success-message {
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}