

:root {
  
  --primary: #7f56da;
  --primary-rgb: 127, 86, 218;
  --secondary: #33b5e5;
  --bg: #050510;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-active: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-dim: #a0a0b0;
  --danger: #ff5252;
  --success: #00c851;

  
  --sidebar-w: 280px;
  --header-h: 70px;
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --max-width: 1400px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}


.settings-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: #000000;
  pointer-events: none;
  z-index: -1;
}


.settings-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 80px);
  z-index: 1000;
  background: #080810;
  
  
  transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  perspective: 1000;
  contain: layout paint;
  border-bottom: 1px solid var(--border);
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-exit-link {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-exit-link i {
  font-size: 1.3rem;
  font-weight: 300;
}

@media (max-width: 991px) {
  .header-exit-link {
    display: none;
  }
}

.header-logo a img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.12s cubic-bezier(0.2, 0, 0, 1);
}

.header-logo a:hover img {
  opacity: 0.85;
}

@media (max-width: 480px) {
  .logo img {
    height: 32px;
  }
}

.hamburger {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}


.settings-main {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100vh;
}

.settings-viewport {
  flex: 1;
  padding: clamp(30px, 8vw, 80px) clamp(15px, 5vw, 60px);
  max-width: 1100px;
  margin: 0 auto;
}


.settings-sidebar {
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  position: fixed;
  top: var(--header-h);
  left: 0;
  border-right: 1px solid var(--border);
  background: #080810;
  
  
  transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  perspective: 1000;
  contain: layout paint;
  display: none;
  flex-direction: column;
  padding: 40px 20px;
}

@media (min-width: 1024px) {
  .settings-sidebar {
    display: flex;
  }

  .settings-viewport {
    margin-left: var(--sidebar-w);
  }

  .hamburger {
    display: none;
  }
}


.content-section {
  display: none;
  animation: slideUp 0.6s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.content-section.active {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.section-header {
  margin-bottom: clamp(30px, 6vw, 50px);
}

.section-header h1 {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-dim);
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  max-width: 600px;
}


.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 30px);
  margin-bottom: 20px;
  
  
  transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  perspective: 1000;
  contain: layout paint;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-card:hover {
  border-color: rgba(var(--primary-rgb), 0.2);
}


.profile-hero {
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 40px);
  flex-wrap: wrap;
}

.avatar-wrapper {
  position: relative;
  width: clamp(100px, 20vw, 140px);
  height: clamp(100px, 20vw, 140px);
}

.avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 35%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.3);
}

.avatar-edit-btn {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: 4px solid var(--bg);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.hero-info h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.hero-info p {
  font-size: 0.85rem;
  color: var(--text-dim);
}


.card-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.field-info label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.field-value {
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 600;
  word-break: break-word;
}

.btn-icon-text {
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.btn-icon-text:hover {
  background: var(--primary);
  color: #fff;
}


.card-field-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.card-field-toggle .field-info p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked+.slider {
  background-color: var(--primary);
}

input:checked+.slider:before {
  transform: translateX(24px);
}


.billing-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-card label {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-amount {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 10px;
}

.stat-card.owed .stat-amount {
  color: var(--danger);
}


.desktop-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  display: none;
  
}

@media (min-width: 768px) {
  .desktop-table {
    display: table;
  }

  .mobile-transaction-feed {
    display: none;
  }
}

.desktop-table th {
  text-align: left;
  padding: 10px 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.desktop-table td {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.desktop-table td:first-child {
  border-left: 1px solid var(--border);
  border-radius: 12px 0 0 12px;
}

.desktop-table td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 12px 12px 0;
}

.mobile-transaction-feed {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.transaction-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.tx-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.tx-id {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.tx-proj {
  font-weight: 600;
  font-size: 1.1rem;
}

.tx-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.red {
  background: rgba(255, 82, 82, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 82, 82, 0.2);
}


.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  
  
  transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  perspective: 1000;
  contain: layout paint;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: clamp(25px, 6vw, 40px);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-title h3 {
  font-size: 1.6rem;
  font-weight: 700;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 2rem;
  cursor: pointer;
}

.modern-input,
.modern-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.modern-textarea {
  min-height: 120px;
  resize: none;
}

.modern-textarea:focus {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  outline: none;
}

.modern-input:focus {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  outline: none;
}

.modal-footer {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn-primary:active {
  opacity: 0.7;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}




.section-danger .section-header h1 {
  -webkit-text-fill-color: var(--text);
}


.layout-footer {
  text-align: center;
  padding: 60px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
}


.input-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.sidebar-brand h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  opacity: 0.6;
  margin-bottom: 30px;
  padding-left: 15px;
}

.drawer-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  justify-content: center;
}

.drawer-list li {
  width: calc(50% - 6px);
  height: 60px;
  
}

.drawer-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  padding: 0 10px;
  
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
  width: 100%;
  height: 100%;
}

.drawer-list li.active a,
.drawer-list li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: none;
  background: none;
  color: var(--text-dim);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(var(--primary-rgb), 0.3);
}

.nav-link.active i {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.nav-link i {
  font-size: 1.5rem;
}

.nav-link:hover {
  background: var(--surface-active);
  color: #fff;
}


.contact-form-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card-field-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-item label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-action {
  display: flex;
  justify-content: flex-start;
  padding-top: 10px;
}

.btn-danger-full {
  background: transparent;
  color: #ff3b30;
  border: 2px solid rgba(255, 59, 48, 0.3);
  padding: 16px 35px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger-full:hover {
  background: #ff3b30;
  color: #fff;
  border-color: #ff3b30;
}





.status-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.status-badge.active {
  background: rgba(0, 200, 81, 0.2);
  color: #00c851;
}

.status-badge.inactive {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.badge.green {
  background: rgba(0, 200, 81, 0.1);
  color: #00c851;
  border: 1px solid rgba(0, 200, 81, 0.2);
}

.badge.yellow {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.2);
}


.tutor-card-modern {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}

.tutor-card-modern:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tutor-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.tutor-card-header .avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.tutor-header-info h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.tutor-header-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.tutor-card-body {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.tutor-card-body .stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.tutor-card-body .stat i {
  color: var(--primary);
  font-size: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.empty-state .empty-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
}



.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  contain: layout paint;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-logo img {
  height: 32px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--secondary-text-color, #a0a0a0);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.drawer-close:hover {
  color: #ffffff;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.mobile-primary-btn {
  display: block;
  width: 100%;
  background: var(--primary-color, #7f56da);
  color: #ffffff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  margin-bottom: 32px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.mobile-primary-btn:active {
  opacity: 0.75;
}

.mobile-nav-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list li:last-child {
  border-bottom: none;
}

.mobile-nav-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.mobile-nav-list a:hover {
  color: var(--primary-color, #7f56da);
}

@media (max-width: 768px) and (hover: none) {
  .settings-header {
    background: #080810;
  }
  .settings-sidebar {
    background: #080810;
  }
  .settings-card {
    background: #0c0c14;
  }
}

.mobile-nav-list a i {
  font-size: 1.2rem;
  color: var(--secondary-text-color, #a0a0a0);
  transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-nav-list a:hover i {
  transform: translateX(4px);
  color: var(--primary-color, #7f56da);
}