        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #0d47a1;
            --primary-light: #4f6f8f;
            --accent: #4CAF50;
            --accent-soft: #e8f5e9;
            --bg-light: #f9fafc;
            --card-white: #ffffff;
            --text-dark: #1e2a3a;
            --text-soft: #2c3e50;
            --gray-light: #eef2f6;
            --shadow-sm: 0 8px 20px rgba(0,20,50,0.06);
            --shadow-hover: 0 12px 28px rgba(0,30,70,0.1);
            --radius-card: 20px;
            --radius-input: 14px;
            --danger: #dc3545;
            --warning: #f59e0b;
            --success: #10b981;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.5;
            scroll-behavior: smooth;
		   padding-top: 100px;  /* ¡û ADD THIS */
        }

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 20, 40, 0.08);
    z-index: 1000;
}

.logo-row {
    background: white;
    padding: 0.6rem 2rem;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.company-logo {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
}
        .logo-group {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .company-logo img {
            height: 56px;
            width: auto;
            display: block;
            border-radius: 12px;
        }

        .slogan-text {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--primary);
            letter-spacing: -0.01em;
            background: #e3f2fd;
            padding: 0.4rem 1.4rem;
            border-radius: 40px;
            white-space: nowrap;
            border: 1px solid rgba(13,71,161,0.2);
            box-shadow: 0 2px 6px rgba(0,0,0,0.02);
        }

        .pro-badge {
            background: linear-gradient(135deg, #ffd700, #ffb347);
            color: #1a237e;
            padding: 0.25rem 1rem;
            border-radius: 50px;
            font-weight: bold;
            font-size: 0.8rem;
            margin-left: 10px;
            white-space: nowrap;
            display: inline-block;
        }

        .header-cta {
            display: flex;
            gap: 12px;
        }
        .header-cta a {
            background: var(--primary);
            color: white;
            text-decoration: none;
            padding: 0.4rem 1.4rem;
            border-radius: 30px;
            font-weight: 500;
            font-size: 0.95rem;
            transition: 0.2s;
            white-space: nowrap;
        }
        .header-cta a:hover {
            background: #1565c0;
        }
        .header-cta a.logout-btn {
            background: #dc3545;
        }
        .header-cta a.logout-btn:hover {
            background: #c82333;
        }

        .nav-row {
            background: var(--primary);
            color: white;
            padding: 0;
        }

        .main-nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 0.1rem 2rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
            gap: 0.2rem;
        }

        .nav-links li a {
            display: block;
            color: white;
            text-decoration: none;
            padding: 0.4rem 1.2rem;
            font-weight: 500;
            border-radius: 30px;
            transition: background 0.2s;
            font-size: 0.95rem;
        }

        .nav-links li a:hover {
            background: var(--accent);
        }

        .nav-links li a.active {
            background: var(--accent);
        }

       .nav-links li a.active {
        	border-bottom: 5px solid #4CAF50;
        	background: transparent;
        	border-radius: 0;
    	   }

        /* ===== MAIN CONTAINER ===== */
        .settings-container {
            max-width: 820px;
            margin: 0 auto;
            padding: 2rem;
        }

        .settings-header {
            margin-bottom: 2rem;
        }

        .settings-header h1 {
            color: var(--primary);
            font-size: 2rem;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .settings-header .subtitle {
            color: #64748b;
            font-size: 1rem;
            margin-top: 4px;
        }

        /* ===== SETTINGS SECTIONS ===== */
        .settings-section {
            background: white;
            border-radius: var(--radius-card);
            padding: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid rgba(13, 71, 161, 0.06);
        }

        .settings-section .section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--gray-light);
        }

        .settings-section .section-header i {
            font-size: 1.5rem;
            color: var(--primary);
            width: 32px;
            text-align: center;
        }

        .settings-section .section-header h2 {
            font-size: 1.2rem;
            color: var(--text-dark);
            font-weight: 600;
        }

        .settings-section .section-header .section-badge {
            margin-left: auto;
            background: var(--accent-soft);
            color: var(--primary);
            padding: 2px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        /* ===== SUBSCRIPTION DETAILS ===== */
        .subscription-details {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1px;
            background: var(--gray-light);
            border-radius: 12px;
            overflow: hidden;
        }

        .subscription-details .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: white;
        }

        .subscription-details .detail-row .label {
            color: #64748b;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .subscription-details .detail-row .value {
            font-weight: 600;
            color: var(--text-dark);
            font-size: 1rem;
            text-align: right;
        }

        .subscription-details .detail-row .value .plan-name {
            color: var(--primary);
        }

        .subscription-details .detail-row .value .price {
            color: var(--success);
        }

        .subscription-details .detail-row .value .next-date {
            color: #0d47a1;
        }

        .subscription-details .detail-row .value .status-badge {
            display: inline-block;
            padding: 3px 14px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .status-badge.active {
            background: var(--accent-soft);
            color: var(--success);
        }

        .status-badge.past-due {
            background: #fef3c7;
            color: var(--warning);
        }

        .status-badge.canceled {
            background: #fef2f2;
            color: var(--danger);
        }

        .status-badge.inactive {
            background: #f1f5f9;
            color: #64748b;
        }

        .status-badge.free {
            background: #f1f5f9;
            color: #64748b;
        }

        /* ===== PLAN ACTIONS ===== */
        .plan-actions {
            margin-top: 1.5rem;
        }

        .btn-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 10px 24px;
            border: none;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            font-family: inherit;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: #1565c0;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
        }

        .btn-secondary {
            background: var(--gray-light);
            color: var(--text-dark);
        }

        .btn-secondary:hover {
            background: #e0e0e0;
        }

        .btn-warning {
            background: var(--warning);
            color: white;
        }

        .btn-warning:hover {
            background: #d97706;
            transform: translateY(-2px);
        }

        .btn-danger {
            background: var(--danger);
            color: white;
        }

        .btn-danger:hover {
            background: #c82333;
            transform: translateY(-2px);
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        .btn .spinner {
            display: none;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .btn.loading .spinner {
            display: inline-block;
        }

        .btn.loading .btn-text {
            display: none;
        }

        .btn.loading .btn-loading-text {
            display: inline;
        }

        .btn .btn-loading-text {
            display: none;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ===== FORM ELEMENTS ===== */
        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 4px;
            font-size: 0.9rem;
        }

        .form-group .field-description {
            color: #94a3b8;
            font-size: 0.8rem;
            margin-top: 4px;
        }

        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group input[type="password"] {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: var(--radius-input);
            font-size: 1rem;
            transition: border-color 0.2s;
            font-family: inherit;
            background: #ffffff;
        }

        .form-group input:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
        }

        .form-group input:disabled {
            background: #f8fafc;
            color: #64748b;
        }

        .form-group .password-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .form-group .password-wrapper input {
            width: 100%;
            padding: 12px 50px 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: var(--radius-input);
            font-size: 1rem;
            transition: border-color 0.2s;
            font-family: inherit;
            background: #ffffff;
            flex: 1;
        }

        .form-group .password-wrapper input:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
        }

        .form-group .password-toggle {
            position: absolute;
            right: 14px;
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 1.1rem;
            padding: 8px;
            transition: color 0.2s;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .form-group .password-toggle:hover {
            color: var(--primary);
        }

        .form-group .password-toggle .fa-eye-slash {
            display: none;
        }

        .form-group .password-wrapper.show-password .password-toggle .fa-eye {
            display: none;
        }

        .form-group .password-wrapper.show-password .password-toggle .fa-eye-slash {
            display: inline-block;
        }

        .form-group .password-hint {
            font-size: 0.8rem;
            margin-top: 4px;
            display: block;
        }

        .form-group .password-hint.success {
            color: var(--success);
        }

        .form-group .password-hint.error {
            color: var(--danger);
        }

        /* ===== TOAST ===== */
        .toast-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            max-width: 420px;
            background: white;
            border-radius: 12px;
            padding: 16px 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            z-index: 10000;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            animation: slideInRight 0.3s ease;
            border-left: 4px solid var(--primary);
        }

        .toast-notification.success {
            border-left-color: var(--success);
        }

        .toast-notification.error {
            border-left-color: var(--danger);
        }

        .toast-notification.warning {
            border-left-color: var(--warning);
        }

        .toast-notification .toast-icon {
            font-size: 1.2rem;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .toast-notification .toast-content {
            flex: 1;
        }

        .toast-notification .toast-title {
            font-weight: 600;
            color: var(--text-dark);
            font-size: 0.95rem;
        }

        .toast-notification .toast-message {
            color: #64748b;
            font-size: 0.9rem;
            margin-top: 2px;
        }

        .toast-notification .toast-close {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: #94a3b8;
            padding: 0 4px;
            flex-shrink: 0;
        }

        .toast-notification .toast-close:hover {
            color: #475569;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* ===== LOADING OVERLAY ===== */
        .loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.95);
            z-index: 99999;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            animation: fadeIn 0.3s ease;
        }

        .loading-overlay.show {
            display: flex;
        }

        .loading-overlay .spinner-large {
            width: 48px;
            height: 48px;
            border: 4px solid #e2e8f0;
            border-top-color: #0d47a1;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .loading-overlay .loading-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #0d47a1;
            margin-top: 20px;
        }

        .loading-overlay .loading-subtitle {
            color: #64748b;
            font-size: 0.95rem;
            margin-top: 8px;
            max-width: 400px;
            text-align: center;
            line-height: 1.6;
        }

        .loading-overlay .loading-tip {
            color: #94a3b8;
            font-size: 0.85rem;
            margin-top: 16px;
            padding: 12px 20px;
            background: #f1f5f9;
            border-radius: 8px;
            max-width: 420px;
            text-align: center;
            line-height: 1.5;
        }

        .loading-overlay .loading-tip i {
            color: #f59e0b;
            margin-right: 6px;
        }

        .loading-overlay .loading-timer {
            color: #94a3b8;
            font-size: 0.8rem;
            margin-top: 12px;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }


	/* ===== SETTINGS PAGE - MOBILE CSS (Matching Pro Dashboard) ===== */
	@media (max-width: 768px) {

           body { 
                padding-top: 0;
            }
            
            .site-header {
                position: relative;
                top: auto;
                left: auto;
                width: 100%;
                box-shadow: 0 2px 8px rgba(0, 20, 40, 0.05);
            }
            
            .logo-row { 
                padding: 0.5rem 1rem; 
            }
            
            .main-nav { 
                padding: 0.2rem 1rem; 
            }
            
            .company-logo {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                gap: 0.5rem;
            }
            
            .logo-group { 
                flex: 0 0 auto;
                display: flex;
                align-items: center;
                gap: 10px;
            }
            
            .company-logo img { 
                height: 42px;
            }
            
            .slogan-text { 
                display: none; 
            }
            
            .header-cta {
                display: flex;
                flex-direction: column;
                gap: 6px;
                margin-left: auto;
                flex: 0 0 auto;
            }
            
            .header-cta a {
                padding: 0.25rem 1rem;
                font-size: 1rem;
                text-align: center;
                min-width: 70px;
                display: block;
            }
            
  		   .nav-row {
        		  position: relative;
               overflow-x: auto;
              -webkit-overflow-scrolling: touch;
           }
            
    		  .main-nav {
        		  display: flex;
        		  align-items: center;
        		  justify-content: flex-start;
        		  flex-wrap: nowrap;
        		  gap: 8px;
       		  padding: 0.2rem 1rem;
        		  overflow-x: auto;
        		  -webkit-overflow-scrolling: touch;
        		 scrollbar-width: thin;
    		  }

   			.main-nav::-webkit-scrollbar {
        			height: 3px;
    		}
    
    		.main-nav::-webkit-scrollbar-track {
        		background: rgba(255,255,255,0.15);
        		border-radius: 10px;
    		}
    
    		.main-nav::-webkit-scrollbar-thumb {
        		background: rgba(255,255,255,0.4);
        		border-radius: 10px;
    		}

    		.nav-links {
        		display: flex;
        		overflow-x: visible;
        		white-space: nowrap;
        		flex-wrap: nowrap;
        		gap: 0.25rem;
        		scrollbar-width: none;
        		-ms-overflow-style: none;
    		}

    		.nav-links::-webkit-scrollbar {
        		display: none;
    		}
                
            .nav-links li a {
                padding: 0.4rem 0.85rem;
                font-size: 1rem;
                white-space: nowrap;
            }
            
            .pro-badge-nav {
                display: inline-block;
                background: linear-gradient(135deg, #ffd700, #ffb347);
                color: #1a237e;
                padding: 0.25rem 0.8rem;
                border-radius: 50px;
                font-weight: bold;
                font-size: 0.7rem;
                white-space: nowrap;
                margin-left: auto;
            }
            
            .logo-group .pro-badge {
                display: none;
            }

  		   	.nav-links li a.active {
        		  border-bottom: 2px solid #4CAF50;
        		  background: transparent;
        		  border-radius: 0;
    		 	}
    
   		 	.settings-container { 
        			padding: 0.5rem; 
    			}
    
    			.settings-section {
        			padding: 1.25rem;
    			}
    
    			.settings-header h1 {
        			font-size: 1.5rem;
    			}
    
    			/* Subscription Details - Mobile */
   			 .subscription-details .detail-row {
        			flex-direction: column;
        			align-items: flex-start;
        			gap: 4px;
        			padding: 12px 16px;
    			}
    
    			.subscription-details .detail-row .value {
        			text-align: left;
        			width: 100%;
    			}
    
   			 .btn-group {
        			flex-direction: column;
    			}
    
    			.btn-group .btn {
        			width: 100%;
        			justify-content: center;
    			}
    
    			.toast-notification {
        			top: 10px;
        			right: 10px;
        			left: 10px;
        			max-width: none;
    			}
    
   			 /* ===== SAFARI-ONLY OVERRIDES ===== */
    			@supports (-webkit-hyphens:none) {
        			html {
            			font-size: 22px !important;
        			}
        
        			body {
            			font-size: 22px !important;
        			}
        
        			.company-logo img { 
            			height: 52px !important; 
        			}
        
       			 .header-cta a {
            			font-size: 0.8rem !important;
            			padding: 0.4rem 1.1rem !important;
        			}
    			}
	}

	/* ===== EXTRA SMALL SCREENS (480px) ===== */
	@media (max-width: 480px) {
    		.settings-container { 
        		padding: 0.25rem; 
    		}
    
    		.settings-section { 
        		padding: 1rem; 
        		border-radius: 16px; 
    		}
    
    		.settings-header h1 {
        		font-size: 1.2rem;
    		}
    
    		.subscription-details .detail-row {
        		padding: 10px 12px;
    		}
    
    		.subscription-details .detail-row .label {
        		font-size: 0.8rem;
    		}
    
   		 .subscription-details .detail-row .value {
        		font-size: 0.9rem;
    		}
    
   		 .btn {
        		padding: 8px 16px;
        		font-size: 0.85rem;
    		}
	}


