 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 :root {
     --bg: #0a0c12;
     --card: #14161e;
     --surface: #1e202a;
     --text: #ffffff;
     --text-sec: #8e9aaf;
     --border: #2a2d3a;
     --primary: #2E7D32;
     --primary-light: #4CAF50;
     --danger: #e53e3e;
     --radius: 28px;
     --whatsapp: #25D366;
     --whatsapp-dark: #075E54;
     --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.2);
     --transition: all 0.25s ease;
 }

 [data-theme="light"] {
     --bg: #f0fdf4;
     --card: #ffffff;
     --surface: #f8fafc;
     --text: #1a202c;
     --text-sec: #4a5568;
     --border: #e2e8f0;
     --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.05);
 }

 body {
     font-family: 'Tajawal', sans-serif;
     background: var(--bg);
     color: var(--text);
     transition: var(--transition);
     min-height: 100vh;
 }

 .app-layout {
     display: flex;
     min-height: 100vh;
 }

 .sidebar {
     width: 280px;
     background: var(--card);
     border-left: 1px solid var(--border);
     display: flex;
     flex-direction: column;
     padding: 30px 16px;
     position: fixed;
     right: 0;
     top: 0;
     height: 100vh;
     overflow-y: auto;
     box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
     z-index: 20;
     transition: transform 0.3s ease;
 }

 .main-content {
     flex: 1;
     margin-right: 280px;
     display: flex;
     justify-content: center;
     align-items: center;
     min-height: 100vh;
     padding: 80px 20px 20px 20px;
 }

 .sticky-header {
     position: fixed;
     top: 0;
     right: 280px;
     left: 0;
     background: var(--bg);
     backdrop-filter: blur(12px);
     border-bottom: 1px solid var(--border);
     padding: 12px 24px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     z-index: 15;
 }

 .logo {
     display: flex;
     align-items: center;
     gap: 12px;
 }

 .logo-icon {
     width: 48px;
     height: 48px;
     border-radius: 18px;
     overflow: hidden;
     background: var(--surface);
     box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
 }

 .logo-icon img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .logo-text {
     font-weight: 800;
     font-size: 1.5rem;
     background: linear-gradient(135deg, var(--primary), var(--primary-light));
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
 }

 .menu-icon {
     width: 44px;
     height: 44px;
     background: var(--surface);
     border-radius: 50%;
     display: none;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     border: 1px solid var(--border);
     color: var(--text-sec);
     transition: var(--transition);
 }

 .menu-icon:hover {
     background: var(--primary);
     color: white;
 }

 .container {
     width: 100%;
     max-width: 520px;
     margin: 0 auto;
 }

 .card {
     background: var(--card);
     border-radius: var(--radius);
     padding: 36px 30px;
     border: 1px solid var(--border);
     box-shadow: var(--shadow-sm);
 }

 .sidebar-header {
     display: flex;
     flex-direction: column;
     align-items: center;
     margin-bottom: 30px;
     text-align: center;
 }

 .avatar-circle {
     width: 90px;
     height: 90px;
     border-radius: 50%;
     overflow: hidden;
     border: 3px solid var(--primary);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
     background: var(--surface);
     margin-bottom: 14px;
 }

 .avatar-circle img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .user-name-side {
     font-size: 1.1rem;
     font-weight: 700;
     background: linear-gradient(135deg, var(--primary), var(--primary-light));
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
 }

 .side-btn {
     width: 100%;
     padding: 12px 16px;
     margin-bottom: 12px;
     border-radius: 50px;
     font-weight: 600;
     font-size: 0.9rem;
     display: flex;
     align-items: center;
     justify-content: flex-start;
     gap: 12px;
     background: var(--surface);
     border: 1px solid var(--border);
     color: var(--text);
     cursor: pointer;
     transition: var(--transition);
 }

 .side-btn i {
     width: 28px;
     font-size: 1.2rem;
     text-align: center;
 }

 .side-btn:hover {
     transform: translateY(-2px);
     background: var(--primary);
     color: white;
     border-color: var(--primary);
     box-shadow: 0 6px 14px rgba(46, 125, 50, 0.25);
 }

 .whatsapp-btn {
     background: linear-gradient(95deg, var(--whatsapp-dark), var(--whatsapp));
     color: white;
     border: none;
 }

 .whatsapp-btn:hover {
     filter: brightness(1.08);
 }

 .settings-section {
     margin-top: 20px;
     padding-top: 16px;
     border-top: 1px solid var(--border);
 }

 .settings-section-title {
     font-weight: 600;
     margin-bottom: 12px;
     color: var(--primary);
     font-size: 0.8rem;
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .theme-btns,
 .lang-btns {
     display: flex;
     gap: 10px;
 }

 .opt-btn {
     flex: 1;
     padding: 10px;
     border-radius: 50px;
     background: var(--surface);
     border: 1px solid var(--border);
     color: var(--text);
     cursor: pointer;
     transition: var(--transition);
     font-weight: 500;
     font-size: 0.8rem;
 }

 .opt-btn.active {
     background: var(--primary);
     color: white;
     border-color: var(--primary);
 }

 .title {
     text-align: center;
     margin-bottom: 28px;
 }

 .title h2 {
     font-size: 1.8rem;
     margin-bottom: 6px;
 }

 .title p {
     color: var(--text-sec);
     font-size: 0.85rem;
 }

 .input-group {
     margin-bottom: 20px;
 }

 .input-group label {
     display: block;
     font-size: 0.75rem;
     margin-bottom: 6px;
     color: var(--text-sec);
     font-weight: 600;
 }

 .password-wrapper {
     position: relative;
     display: flex;
     align-items: center;
 }

 .password-wrapper input {
     width: 100%;
     padding: 14px 18px;
     background: var(--surface);
     border: 1.5px solid var(--border);
     border-radius: 60px;
     color: var(--text);
     font-family: inherit;
     font-size: 0.95rem;
     transition: var(--transition);
     padding-left: 50px;
 }

 .password-wrapper input:focus {
     outline: none;
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
 }

 .toggle-password {
     position: absolute;
     left: 16px;
     top: 50%;
     transform: translateY(-50%);
     cursor: pointer;
     color: var(--text-sec);
     transition: var(--transition);
     font-size: 1.1rem;
     z-index: 2;
 }

 .toggle-password:hover {
     color: var(--primary);
 }

 .input-group input,
 .input-group select {
     width: 100%;
     padding: 14px 18px;
     background: var(--surface);
     border: 1.5px solid var(--border);
     border-radius: 60px;
     color: var(--text);
     font-family: inherit;
     font-size: 0.95rem;
     transition: var(--transition);
 }

 .input-group input:focus,
 .input-group select:focus {
     outline: none;
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
 }

 .phone-wrapper {
     display: flex;
     align-items: center;
     background: var(--surface);
     border: 1.5px solid var(--border);
     border-radius: 60px;
     padding: 0 18px;
 }

 .phone-prefix {
     display: flex;
     align-items: center;
     gap: 6px;
     color: var(--primary-light);
     font-weight: bold;
     border-left: 1px solid var(--border);
     padding-left: 12px;
     margin-left: 12px;
 }

 .phone-prefix img {
     width: 22px;
     height: 16px;
     object-fit: cover;
     border-radius: 3px;
 }

 .phone-wrapper input {
     flex: 1;
     background: transparent;
     border: none;
     padding: 14px 0;
     color: var(--text);
 }

 .btn {
     width: 100%;
     padding: 16px;
     border-radius: 60px;
     font-weight: 700;
     cursor: pointer;
     background: linear-gradient(135deg, var(--primary), var(--primary-light));
     color: white;
     border: none;
     font-size: 1rem;
     transition: var(--transition);
 }

 .btn:hover {
     transform: translateY(-2px);
     filter: brightness(1.05);
     box-shadow: 0 8px 18px rgba(46, 125, 50, 0.3);
 }

 .switch {
     text-align: center;
     margin-top: 24px;
     padding-top: 20px;
     border-top: 1px solid var(--border);
 }

 .switch a {
     color: var(--primary-light);
     cursor: pointer;
     font-weight: 600;
 }

 .notification-top {
     position: fixed;
     top: 20px;
     left: 50%;
     transform: translateX(-50%) translateX(0);
     background: var(--primary);
     color: white;
     padding: 12px 24px;
     border-radius: 12px;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
     z-index: 10001;
     font-weight: 500;
     font-size: 0.9rem;
     text-align: center;
     min-width: 200px;
     max-width: 90%;
     backdrop-filter: blur(8px);
     transition: opacity 0.3s ease, transform 0.3s ease;
     opacity: 0;
     visibility: hidden;
     pointer-events: none;
 }

 .notification-top.show {
     opacity: 1;
     visibility: visible;
     transform: translateX(-50%) translateY(0);
 }

 .notification-top.error {
     background: var(--danger);
 }

 .loading-overlay {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.7);
     backdrop-filter: blur(4px);
     z-index: 10000;
     display: none;
     align-items: center;
     justify-content: center;
 }

 .loading-spinner {
     background: var(--card);
     padding: 30px;
     border-radius: 28px;
     text-align: center;
 }

 @media (max-width: 768px) {
     .sidebar {
         transform: translateX(100%);
         right: 0;
         width: 85%;
         max-width: 280px;
     }

     .sidebar.open {
         transform: translateX(0);
     }

     .menu-icon {
         display: flex;
     }

     .main-content {
         margin-right: 0;
     }

     .sticky-header {
         right: 0;
     }

     .card {
         padding: 28px 20px;
     }

     .title h2 {
         font-size: 1.5rem;
     }

     .notification-top {
         top: 70px;
         padding: 10px 20px;
         font-size: 0.8rem;
     }
 }
