*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:#ffffff;
  min-height:100dvh;
  overflow:hidden;

  user-select:none;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
}

input,
textarea{
  user-select:text;
  -webkit-user-select:text;
  -moz-user-select:text;
  -ms-user-select:text;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

textarea::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.container{
  display:flex;
  width:100%;
  min-height:100dvh;
}

/* =========================
   LEFT SIDE
========================== */

.left{
  flex:1;
  position:relative;
  overflow:hidden;
  background:#000;
}

.left::before{
  content:"";
  position:absolute;
  inset:0;

  background-image:url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1600&auto=format&fit=crop");
  background-size:cover;
  background-position:center;

  transform:scale(1);
  transition:transform 6s ease;
}

.left:hover::before{
  transform:scale(1.08);
}

.overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);

  display:flex;
  align-items:flex-end;
  padding:60px;
  z-index:2;
}

.left-content{
  color:#fff;
  max-width:500px;
}

.left-content h1{
  font-size:56px;
  font-weight:700;
  margin-bottom:18px;
  line-height:1;
}

.left-content p{
  font-size:17px;
  line-height:1.8;
  color:rgba(255,255,255,0.82);
}

/* =========================
   RIGHT SIDE
========================== */

.right{
  flex:1;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}

.auth-card{
  width:100%;
  max-width:420px;
}

.auth-card h2{
  font-size:42px;
  color:#000;
  font-weight:700;
}

.subtitle{
  color:#666;
  font-size:15px;
  line-height:1.8;
  margin-top:12px;
  margin-bottom:35px;
  max-width:360px;
}

/* =========================
   FORM
========================== */

.form-step{
  display:none;
}

.form-step.active{
  display:flex;
  flex-direction:column;
}

.form-content{
  width:100%;
}

.bottom-actions{
  width:100%;
}

.form-group{
  margin-bottom:22px;
}

.form-group label{
  display:block;
  margin-bottom:10px;
  font-size:14px;
  font-weight:600;
  color:#111;
}

.input-wrapper{
  position:relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width:100%;
  min-height:56px;

  border:1px solid #dcdcdc;
  border-radius:14px;

  background:#f7f7f7;

  padding:16px 18px;

  font-size:15px;
  color:#000;

  outline:none;
  transition:0.3s ease;
  resize: none;
}

.form-group select {
  cursor: pointer;
  appearance: auto;
}

.char-counter {
  font-size: 12px;
  color: #888;
  text-align: right;
  display: block;
  margin-top: 5px;
}

.char-counter.warning {
  color: #e67e22; /* Warning orange */
  font-weight: 600;
}

.char-counter.danger {
  color: #e74c3c; /* Error red */
  font-weight: 700;
}

.form-group input:focus{
  border-color:#000;
  background:#fff;
}

.form-group input.invalid{
  border-color:#e74c3c !important;
  background:#fff5f5 !important;
  animation:shake 0.25s ease-in-out;
}

@keyframes shake{
  0%, 100%{
    transform:translateX(0);
  }
  25%{
    transform:translateX(-8px);
  }
  75%{
    transform:translateX(8px);
  }
}

/* =========================
   PAGE LOADER
========================== */

.page-loader{
  position:fixed;
  inset:0;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  transition:opacity 0.5s ease, visibility 0.5s ease;
  opacity:1;
  visibility:visible;
}

.page-loader.hidden{
  opacity:0;
  visibility:hidden;
}

.loader-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
}

.spinner{
  width:50px;
  height:50px;
  border:3px solid rgba(255,255,255,0.2);
  border-top:3px solid #fff;
  border-radius:50%;
  animation:spin-loader 0.8s linear infinite;
}

@keyframes spin-loader{
  to{
    transform:rotate(360deg);
  }
}

.loader-content p{
  color:#fff;
  font-size:16px;
  font-weight:600;
  letter-spacing:0.5px;
}



/* PASSWORD */

.password-input{
  padding-right:55px !important;
}

.toggle-password{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);

  border:none;
  background:none;

  cursor:pointer;
  color:#000;
  font-size:16px;
}

/* PASSWORD STRENGTH METER */

.password-strength{
  margin-top:12px;
  margin-bottom:8px;
}

.strength-bar-container{
  width:100%;
  height:6px;
  background:#e0e0e0;
  border-radius:3px;
  overflow:hidden;
  margin-bottom:8px;
}

.strength-bar{
  height:100%;
  width:0%;
  transition:width 0.3s ease, background-color 0.3s ease;
  border-radius:3px;
}

.strength-bar.weak{
  width:33.33%;
  background:#ff6b6b;
}

.strength-bar.fair{
  width:66.66%;
  background:#ffa94d;
}

.strength-bar.good{
  width:83.33%;
  background:#74c0fc;
}

.strength-bar.strong{
  width:100%;
  background:#51cf66;
}

.strength-text{
  font-size:12px;
  color:#666;
  font-weight:500;
}

.strength-text #strengthLevel{
  font-weight:600;
  color:#000;
}

.strength-text.weak #strengthLevel{
  color:#ff6b6b;
}

.strength-text.fair #strengthLevel{
  color:#ffa94d;
}

.strength-text.good #strengthLevel{
  color:#74c0fc;
}

.strength-text.strong #strengthLevel{
  color:#51cf66;
}

/* FORGOT */

.forgot-row{
  display:flex;
  justify-content:flex-end;
  margin-bottom:28px;
}

.forgot{
  text-decoration:none;
  color:#000;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

/* BUTTON */

.auth-btn{
  width:100%;
  height:56px;

  border:none;
  border-radius:14px;

  background:#000;
  color:#fff;

  font-size:15px;
  font-weight:600;

  cursor:pointer;
  transition:0.3s ease;

  margin-bottom:18px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.auth-btn:hover{
  background:#222;
  transform:translateY(-1px);
}

.auth-btn:disabled{
  opacity:0.85;
  cursor:not-allowed;
  transform:none;
}

/* LOADER */

.loader{
  width:18px;
  height:18px;

  border:2px solid rgba(255,255,255,0.3);
  border-top-color:#fff;
  border-radius:50%;

  animation:spin 0.7s linear infinite;
}

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}

/* 3-BALL BOUNCING LOADER */

.bouncing-loader{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  width:100%;
  height:100%;
}

.bouncing-loader div{
  width:12px;
  height:12px;
  background:#fff;
  border-radius:50%;
  animation:bounce 1.4s infinite ease-in-out both;
}

.bouncing-loader div:nth-child(1){
  animation-delay:-0.32s;
}

.bouncing-loader div:nth-child(2){
  animation-delay:-0.16s;
}

@keyframes bounce{
  0%, 80%, 100%{
    transform:scale(0);
    opacity:0.5;
  }
  40%{
    transform:scale(1);
    opacity:1;
  }
}

/* MODE SWITCH */

.mode-switch{
  text-align:center;
}

.mode-switch button{
  border:none;
  background:none;

  color:#000;
  font-size:14px;
  font-weight:700;

  cursor:pointer;
}

/* =========================
   VERIFICATION
========================== */

.verification-header{
  display:flex;
  align-items:center;
  gap:14px;
}

.back-btn{
  width:42px;
  height:42px;

  border:none;
  border-radius:12px;

  background:#f5f5f5;
  color:#000;

  cursor:pointer;
  font-size:15px;

  transition:0.2s ease;
  flex-shrink:0;
}

.back-btn:hover{
  background:#ececec;
}

.code-container{
  display:flex;
  justify-content:center;
  gap:12px;

  margin-bottom:28px;
}

.code-input{
  width:100%;
  max-width:58px;
  aspect-ratio:1/1;

  border:1px solid #dcdcdc;
  border-radius:14px;

  background:#f7f7f7;

  text-align:center;
  font-size:20px;
  font-weight:700;

  outline:none;
  transition:0.3s ease;
}

.code-input:focus{
  border-color:#000;
  background:#fff;
}

.code-input-forgot{
  width:100%;
  max-width:58px;
  aspect-ratio:1/1;

  border:1px solid #dcdcdc;
  border-radius:14px;

  background:#f7f7f7;

  text-align:center;
  font-size:20px;
  font-weight:700;

  outline:none;
  transition:0.3s ease;
}

.code-input-forgot:focus{
  border-color:#000;
  background:#fff;
}

.hidden{
  display:none;
}

/* =========================
   MODAL
========================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease-out;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 800px);
}

.modal-card::-webkit-scrollbar,
.modal-card form::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.modal-card,
.modal-card form {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 20px 20px 0px 20px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #000;
}

.modal-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 20px 30px;
  margin: -30px -30px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 16px 16px 0 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 5px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #000;
  transform: scale(1.1);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: -20px;
  padding-right: -20px;
  background: #ffffff;
  position: sticky;
  bottom: 0;
  z-index: 5;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -8px 20px rgba(255,255,255,0.95);
}

.modal-btn {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-btn.primary { background: #000; color: #fff; }
.modal-btn.primary:hover { background: #222; }
.modal-btn.secondary { background: #f5f5f5; color: #000; }
.modal-btn.secondary:hover { background: #ececec; }

/* =========================
   DASHBOARD - MODERN MINIMALIST
========================== */

.dashboard{
  position:fixed;
  inset:0;
  background:#fff;
  display:none;
  z-index:1000;
  flex-direction:row;
  overflow:hidden;
}

.dashboard.active{
  display:flex;
}

/* SIDEBAR */

.sidebar{
  width:260px;
  height:100dvh;
  background:#000;
  border-right:1px solid #1a1a1a;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  padding:0;
  transition:0.3s ease;
}

.sidebar-content{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:0;
}

.sidebar-header{
  height:70px;
  margin-bottom:30px;
  border-bottom:1px solid #333;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
}

.sidebar-header h3{
  color:#fff;
  font-size:18px;
  font-weight:700;
  margin:0;
  letter-spacing:0.5px;
}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
  padding:0 20px;
}

.nav-item, .nav-item-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border-radius:8px;
  color:#888;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  transition:all 0.2s ease;
  border-left:3px solid transparent;
  position:relative;
}

.nav-item:hover, .nav-item-link:hover{
  background:linear-gradient(90deg, #1a1a1a 0%, #262626 100%);
  color:#fff;
  border-left-color:#3498db;
  padding-left:18px;
  box-shadow:inset 0 0 10px rgba(52, 152, 219, 0.1);
}

.nav-item.active{
  background:linear-gradient(90deg, #1a3a52 0%, #0f2636 100%);
  color:#3498db;
  border-left-color:#3498db;
  font-weight:600;
  box-shadow:inset 0 0 15px rgba(52, 152, 219, 0.15), 0 0 20px rgba(52, 152, 219, 0.1);
}

.nav-item.active i{
  color:#3498db;
}

.nav-item:hover i{
  color:#3498db;
  transition:color 0.2s ease;
}

.nav-item i{
  font-size:16px;
  flex-shrink:0;
}

.sidebar-footer{
  margin-top:auto;
  padding:20px;
  border-top:1px solid #333;
}

.logout-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border:1px solid #fff;
  border-radius:8px;
  background:transparent;
  color:#fff;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:0.2s ease;
}

.logout-btn:hover{
  background:#1a1a1a;
  border-color:#fff;
}

/* MAIN CONTENT */

.dashboard-main{
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* HEADER */

.dashboard-header{
  height:70px;
  background:#fff;
  border-bottom:1px solid #f0f0f0;
  display:flex;
  align-items:center;
  padding:0 30px;
}

.header-left{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex:1;
  gap:0;
}

.header-right {
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.header-profile-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #000;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.header-profile-btn:hover {
  background: #f5f5f5;
}

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  border:none;
  background:none;
  cursor:pointer;
  padding:10px;
  margin:-10px;
  width:44px;
  height:44px;
  justify-content:center;
  align-items:center;
  border-radius:8px;
  order:2;
  position:relative;
  z-index:1002;
}


.hamburger-line{
  width:24px;
  height:2.5px;
  background:#000;
  border-radius:2px;
  transition:transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, opacity 0.3s ease;
  transform-origin:center;
}

.hamburger.active .hamburger-line:nth-child(1){
  transform:translateY(7.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2){
  opacity:0;
  transform:translateX(-10px);
}

.hamburger.active .hamburger-line:nth-child(3){
  transform:translateY(-7.5px) rotate(-45deg);
}

.hamburger.active .hamburger-line{
  background:#fff;
}

.header-title{
  font-size:24px;
  font-weight:700;
  color:#000;
  margin:0;
  letter-spacing:-0.5px;
  order:1;
}

/* CONTENT */

.dashboard-content{
  flex:1;
  overflow-y:auto;
  padding:30px;
  background:#fafafa;
}

.content-section{
  display:none;
  animation:contentFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.active{
  display:block;
}

@keyframes contentFadeIn{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes prefFormFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-fade-in {
  animation: prefFormFadeIn 0.4s ease-out forwards;
  will-change: opacity, transform;
}

/* USER CARD */

.user-card{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:12px;
  padding:24px;
  margin-bottom:30px;
  display:flex;
  align-items:center;
  gap:20px;
}

.user-avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:24px;
  flex-shrink:0;
}

.user-info{
  flex:1;
}

.user-email{
  font-size:15px;
  font-weight:600;
  color:#000;
  margin:0 0 6px 0;
}

.user-status{
  font-size:13px;
  color:#888;
  margin:0;
}

.user-status span{
  color:#000;
  font-weight:600;
}

/* STATS GRID */

.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
}

.stat-card{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:12px;
  padding:24px;
  display:flex;
  align-items:flex-start;
  gap:16px;
  transition:0.2s ease;
}

.stat-card:hover{
  border-color:#d0d0d0;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.stat-icon{
  width:48px;
  height:48px;
  border-radius:10px;
  background:#f5f5f5;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#000;
  font-size:20px;
  flex-shrink:0;
}

.stat-info{
  flex:1;
}

.stat-label{
  font-size:12px;
  color:#888;
  margin:0 0 6px 0;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.stat-value{
  font-size:18px;
  font-weight:700;
  color:#000;
  margin:0;
}

/* QUICK ACTIONS */

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.action-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #000;
  outline: none;
  text-decoration: none;
}

.action-card:hover {
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.action-card i {
  font-size: 20px;
}

.action-card span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.action-card.logout-action {
  color: #e74c3c;
}

.action-card.logout-action:hover {
  border-color: #e74c3c;
  background: #fff5f5;
}

.full-width-action {
  width: 100%;
  margin-top: 16px;
  flex-direction: row !important;
  padding: 18px 24px !important;
}

/* PROFILE SETTINGS */

.profile-settings-card {
  display: block !important;
}

.profile-form {
  width: 100%;
  max-width: 100%;
}

/* =========================
   MERGED CARD HEADER
========================== */

.card-header-merged {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

#testimonialsSection .user-card {
  display: block;
}

#testimonialsSection .testimonials-list {
  margin-top: 0;
  gap: 0;
  margin-left: -24px;
  margin-right: -24px;
}

#testimonialsSection .testimonial-card {
  border: none;
  background: none;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
}

#testimonialsSection .testimonial-card:last-child {
  border-bottom: none;
}

#testimonialsSection .testimonial-card:hover {
  background: transparent;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.preferences-inline-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}

.preferences-inline-row > div {
  flex: 0 0 auto;
}

/* OFFCANVAS */

.offcanvas-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  display:none;
  z-index:999;
  transition:0.3s ease;
}

/* BOTTOM NAV BAR */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: #000;
  border-top: 1px solid #222;
  z-index: 1005;
  justify-content: space-around;
  align-items: center;
  padding: 0 5px;
}

.bottom-nav-item, .bottom-nav-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  gap: 0;
  flex: 1;
  transition: 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active, .bottom-nav-item-link:active {
  transform: scale(0.92);
  transition: transform 0.1s ease;
}

.bottom-nav-item i {
  font-size: 22px;
}

.bottom-nav-item span {
  display: none;
}

.bottom-nav-item.active {
  color: #3498db;
}

.mobile-logout-container {
  display: none;
  margin-top: 20px;
}

.mobile-only-btn {
  background: #fff !important;
  color: #e74c3c !important;
  border: 1px solid #e74c3c !important;
  width: 100%;
}

.offcanvas-backdrop.active{
  display:block;
}

/* =========================
   TOAST NOTIFICATION
========================== */

.toast-container{
  position:fixed;
  top:20px;
  right:20px;
  z-index:9999;
  pointer-events:none;
}

.toast{
  background:#fff;
  padding:16px 20px;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  min-width:320px;
  pointer-events:auto;
  animation:slideInRight 0.3s ease-out;
}

.toast.success{
  border-left:4px solid #27ae60;
}

.toast.success .toast-icon{
  color:#27ae60;
}

.toast.error{
  border-left:4px solid #e74c3c;
}

.toast.error .toast-icon{
  color:#e74c3c;
}

.toast.info{
  border-left:4px solid #3498db;
}

.toast.info .toast-icon{
  color:#3498db;
}

.toast-icon{
  font-size:20px;
  flex-shrink:0;
}

.toast-content{
  flex:1;
}

.toast-title{
  font-weight:600;
  color:#000;
  margin:0;
  font-size:14px;
}

.toast-message{
  color:#666;
  margin:4px 0 0 0;
  font-size:13px;
}

.toast-close{
  border:none;
  background:none;
  color:#999;
  cursor:pointer;
  font-size:18px;
  padding:0;
  flex-shrink:0;
  transition:0.2s ease;
}

.toast-close:hover{
  color:#333;
}

@keyframes slideInRight{
  from{
    transform:translateX(400px);
    opacity:0;
  }
  to{
    transform:translateX(0);
    opacity:1;
  }
}

@keyframes slideOutRight{
  from{
    transform:translateX(0);
    opacity:1;
  }
  to{
    transform:translateX(400px);
    opacity:0;
  }
}

.toast.removing{
  animation:slideOutRight 0.3s ease-out;
}

/* =========================
   MOBILE - DASHBOARD
========================== */

@media (max-width:900px){

  .hamburger{
    display:flex;
  }

  .header-left{
    gap:0;
  }

  .sidebar{
    position:fixed;
    left:0;
    top:0;
    width:280px;
    height:100dvh;
    z-index:1001;
    transform:translateX(-100%);
    transition:transform 0.3s ease;
    border-right:1px solid #1a1a1a;
  }

  .sidebar.active{
    transform:translateX(0);
  }

  .nav-item, .sidebar-footer {
    opacity: 0;
    transform: translateX(-20px);
  }

  .sidebar.active .nav-item,
  .sidebar.active .sidebar-footer {
    animation: navItemSlideIn 0.4s ease forwards;
  }

  .sidebar.active .nav-item:nth-child(1) { animation-delay: 0.15s; }
  .sidebar.active .nav-item:nth-child(2) { animation-delay: 0.20s; }
  .sidebar.active .nav-item:nth-child(3) { animation-delay: 0.25s; }
  .sidebar.active .nav-item:nth-child(4) { animation-delay: 0.30s; }
  .sidebar.active .nav-item:nth-child(5) { animation-delay: 0.35s; }
  .sidebar.active .sidebar-footer { animation-delay: 0.40s; }

  .dashboard-content{
    padding:20px;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-right {
    display: none;
  }

}

@keyframes navItemSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================
   MOBILE - AUTH
========================== */

@media (max-width:900px){

  body{
    overflow:auto;
  }

  .container{
    display:block;
  }

  .left{
    display:none;
  }

  .right {
    height: 100dvh;
    padding: 80px 20px 40px;
    align-items: flex-start;
    overflow: hidden;
  }

  .auth-card {
    max-width: 100%;
    height: 100%;
    border-radius: 0 !important;
  }

  .form-step.active {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .auth-card h2{
    font-size:36px;
  }

  .bottom-actions{
    margin-top:auto;
    padding-top:25px;
  }

  .auth-btn{
    margin-bottom:16px;
  }

  .code-input{
    border-radius:12px;
  }

  .code-input-forgot{
    border-radius:12px;
  }

}

@media (max-width:600px){

  .right{
    padding: 40px 16px 20px;
  }

  .mobile-logout-container {
    display: block;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .hamburger {
    display: none !important;
  }

  .header-right {
    display: flex;
  }

  .code-input{
    font-size:18px;
  }

  .code-input-forgot{
    font-size:18px;
  }

  .sidebar {
    display: none;
  }

  .code-container{
    gap:8px;
    margin-bottom:20px;
  }

  .auth-card h2{
    font-size:28px;
  }

  .dashboard-header{
    padding:0 16px;
  }

  .header-left{
    gap:0;
  }

  .header-title{
    font-size:18px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .dashboard-content{
    padding: 30px 16px 100px; /* Increased top and bottom padding for mobile */
  }

  .user-card{
    flex-direction:column;
    text-align:center;
  }

  .stats-grid{
    grid-template-columns:1fr;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group label {
    text-align: left;
  }

}

@media (max-width:480px){

  .right{
    padding: 40px 16px 30px;
  }

  .code-input{
    font-size:16px;
  }

  .code-input-forgot{
    font-size:16px;
  }

  .code-container{
    gap:5px;
    margin-bottom:16px;
  }

  .form-group{
    margin-bottom:16px;
  }

  .auth-card h2{
    font-size:24px;
  }

  .subtitle{
    font-size:14px;
    margin-bottom:24px;
  }

  .dashboard-header{
    height:60px;
    padding:0 12px;
  }

  .sidebar-header{
    height:60px;
  }

  .header-left{
    gap:0;
  }

  .header-title{
    font-size:16px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    flex:1;
    min-width:0;
  }

  .hamburger{
    width:40px;
    height:40px;
    padding:8px;
    margin:0;
    flex-shrink:0;
  }

  .hamburger-line{
    width:18px;
    height:2px;
  }

  .hamburger.active .hamburger-line:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }

  .sidebar-header h3{
    font-size:16px;
  }

  .nav-item{
    padding:10px 12px;
    font-size:13px;
  }

}

/* =========================
   SECTION LOADER
========================== */

.section-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin-top: 20px;
  gap: 15px;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: spin-loader 0.8s linear infinite;
}

.loader-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.loader-progress-bar {
  width: 80%;
  max-width: 300px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loader-progress {
  height: 100%;
  background: #3498db; /* A nice blue color */
  border-radius: 4px;
  transition: width 0.5s ease-in-out;
}

.loader-percentage {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  margin-top: 5px;
}

/* =========================
   MODERN TESTIMONIALS LIST
========================== */

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.listings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  margin-left: -24px;
  margin-right: -24px;
}

#listingsSection .user-card,
#hiddenSection .user-card {
  display: block;
}

#hiddenSection .listings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  margin-left: -24px;
  margin-right: -24px;
}

#hiddenSection .listing-card {
  background: #fff;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background-color 0.2s ease;
  animation: testimonialFadeIn 0.4s ease-out forwards;
}

#hiddenSection .listing-card:last-child {
  border-bottom: none;
}

.listing-card {
  background: #fff;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background-color 0.2s ease;
  animation: testimonialFadeIn 0.4s ease-out forwards;
}

.listing-card:last-child {
  border-bottom: none;
}

.listing-card-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
}
.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card-header {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

.listing-card-header h4 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: left;
}

.listing-category {
  font-size: 13px;
  color: #888;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.listing-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.listing-price {
  color: #27ae60;
  font-weight: 700;
  font-size: 15px;
}

.listing-card-footer {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 100px;
}

.listing-category {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: right;
}

.repeater-item {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.drag-handle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  background: #f7f7f7;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  cursor: grab;
  flex-shrink: 0;
  transition: 0.2s ease;
}

.bulk-import-area {
  font-family: monospace !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  white-space: pre;
  overflow-x: auto;
}
.drag-handle:hover {
  background: #efefef;
  color: #333;
}

.repeater-item.dragging {
  opacity: 0.5;
}
.repeater-item.dragging .drag-handle {
  cursor: grabbing;
}
.repeater-item input {
  flex: 1;
  min-height: 48px !important;
}
.remove-repeater-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #ffdcdc;
  background: #fff5f5;
  color: #e74c3c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
.remove-repeater-btn:hover {
  background: #ffebeb;
}

.listing-year {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

/* =========================
   HYBRID CATEGORY INPUT
========================== */

.cat-loading-spinner {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin-cat 0.7s linear infinite;
  display: none;
  z-index: 5;
}

.loading-cat .cat-loading-spinner {
  display: block;
}

.loading-cat .hybrid-chevron,
.loading-cat .hybrid-reset {
  display: none;
}

@keyframes spin-cat {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes hybridFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

#listingCatContainer select,
.hybrid-input-wrapper {
  position: relative;
  width: 100%;
  animation: hybridFadeIn 0.3s ease-out;
}

.hybrid-input-wrapper input {
  padding-right: 80px !important;
}

.hybrid-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  font-size: 12px;
}

.hybrid-reset {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.hybrid-reset:hover {
  color: #e74c3c;
}

/* =========================
   INPUT PREFIX
========================== */
.prefix-input-wrapper {
  position: relative;
  width: 100%;
}

.prefix-input-wrapper input {
  padding-left: 38px !important;
}

.input-prefix {
  position: absolute;
  left: 18px;
  top: 50%;
  padding-right: 10px;
  transform: translateY(-50%);
  color: #000;
  font-weight: 600;
  font-size: 15px;
  pointer-events: none;
}

.phone-input-wrapper input {
  padding-left: 36px !important;
}

.phone-toggle-pill {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  pointer-events: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.whatsapp-toggle {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: #25D366;
  cursor: pointer;
  pointer-events: auto;
  display: block;
  transform: none;
  -webkit-appearance: checkbox;
  appearance: auto;
}

.testimonial-card {
  background: #fff;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background-color 0.2s ease;
  animation: testimonialFadeIn 0.4s ease-out forwards;
}

.testimonial-card:hover {
  background-color: #fafafa;
}

#testimonialsSection .testimonial-card:last-child {
  border-bottom: none;
}

.testimonial-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.testimonial-top-row,
.testimonial-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.author-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-stars {
  color: #f1c40f;
  font-size: 14px;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  flex: 1;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.testimonial-footer {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 100px;
}

.testimonial-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.testimonial-actions a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.edit-link { color: #3498db; }
.hide-link { color: #f39c12; }
.show-link { color: #2ecc71; }
.delete-link { color: #e74c3c; }


@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
  }

  .testimonial-content {
    gap: 6px;
  }

  .testimonial-top-row,
  .testimonial-bottom-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .testimonial-stars {
    margin-top: 0;
  }

  .testimonial-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-top: 0;
  }

  .testimonial-footer {
    width: auto;
    margin-left: auto;
    padding-top: 0;
    border-top: none;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    min-width: 72px;
  }

  .testimonial-actions {
    justify-content: flex-end;
  }
}

/* TESTIMONIAL ANIMATION */
@keyframes testimonialFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   STAR RATING INPUT
========================== */

.star-rating-input {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f7f7f7;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #dcdcdc;
  min-height: 56px;
}

.star-stars {
  display: flex;
  gap: 5px;
  color: #f1c40f;
  font-size: 20px;
  cursor: pointer;
  touch-action: none; /* Prevents scrolling while swiping stars on mobile */
}

.star-stars i {
  transition: transform 0.1s ease;
}

#ratingDisplay {
  font-weight: 700;
  font-size: 16px;
  color: #000;
  min-width: 30px;
}

/* =========================
   MOBILE RESPONSIVE MODAL
========================== */

@media (max-width: 900px) {
  .modal-backdrop {
    padding: 16px;
    align-items: center;
  }

  .modal-card {
    width: 100%;
    max-width: 420px !important;
    height: auto;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
  }

  .modal-card form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
  }

  .modal-actions {
    margin-top: 20px;
    padding-top: 0;
  }

  #listingModal,
  #testimonialModal,
  #bulkImportModal {
    padding: 0;
  }

  #listingModal .modal-card,
  #testimonialModal .modal-card,
  #bulkImportModal .modal-card {
    width: 100%;
    height: 100dvh;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
  }

  #listingModal .modal-card form,
  #testimonialModal .modal-card form,
  #bulkImportModal .modal-card form {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

#listingModal .modal-card form {
  padding: 0 30px 24px;
  box-sizing: border-box;
}

  #listingModal .modal-card form {
    padding: 0 20px 20px;
  }

  #listingModal .modal-card form .listing-modal-primary-row {
    flex-direction: column;
    gap: 0;
  }

  #listingModal .modal-card form .form-row:not(.listing-modal-primary-row) {
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
  }

  #listingModal .modal-card form .form-row:not(.listing-modal-primary-row) .form-group {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  #listingModal .modal-card form .form-row:not(.listing-modal-primary-row) {
    flex-direction: row;
    gap: 10px;
  }
}
