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

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; 
  font-size: 1rem; 
  background-color: #0f172a; 
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {text-decoration: none; color: inherit;}

/* --------------for login/registration layout---------------------- */
body.auth-page { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 20px;
}

/* ---------------for dashboard layout---------------- */
body.dashboard-page { min-height: 100%; display: flex; margin: 0; padding: 0; flex-direction: column; overflow: hidden; 
}

.container { position: relative; max-width: 430px; width: 100%; box-shadow: 0 5px 10px rgba(83, 66, 213, 0.1); height: auto; min-height: 50%; margin-top: 2%; margin-bottom: 2%;
}

/* Fix countdown layout on auth pages */
body.auth-page .container {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Ensure countdown banner doesn't overlap form on auth pages */
body.auth-page #seasonal-countdown {
    position: relative;
    width: 100%;
    z-index: 999;
}

.container .forms { padding: 40px 30px; background: white; border-radius: 15px; display: flex; flex-direction: column;
}

.container .form .heading { position: relative; font-size: 32px; font-weight: 700; text-align: center; color: #0f172a; margin-bottom: 30px; letter-spacing: 1px; padding: 0; width: 100%;
}

.container .form .title { position: relative; font-size: 30px; font-weight: 600;
}

.form .title::before { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 20%; background-color: red; border-radius: 25px;
}

/* -----------------Input row--------------------- */
.form .input-field { position: relative; width: 100%; height: 48px; margin-top: 16px;
}

/* -----------------The input---------------------- */
.input-field input{ width: 100%; height: 100%; padding: 0 12px 0 44px; border: 1px solid #d1d5db; border-radius: 8px; outline: none; background: #fff; color: #0f172a !important; font-size: 16px; line-height: 1; box-shadow: inset 0 1px 1px rgba(0,0,0,.03);
}

/* -----------Password input container--------------- */
.password-field { position: relative; width: 100%;
}


/* ----------------Password input---------------- */
.password-field input { width: 100%; padding: 10px 40px 10px 38px; border: 1px solid #ccc; border-radius: 8px; font-size: 15px; outline: none; color: #0f172a !important; background: #fff !important;
}

.input-field input:focus { border-color: #0d5e86; box-shadow: 0 0 0 3px rgba(13,94,134,.15); color: #0f172a !important;
}

/* -------------------The icon----------------------------*/
.input-field i{ position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #0f172a; font-size: 18px; pointer-events: none;         
}


/* --------------------Right eye icon (existing style)---------------------- */
.password-field .fa-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #0f172a; font-size: 18px;
}

.password-field .toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #0f172a; font-size: 18px;
}

/* -------------Small screens---------------- */
@media (max-width: 900px){
  .form .input-field{ height: 46px; }
  .input-field input{ padding-left: 42px; font-size: 16px; color: #0f172a !important; }
  .input-field i{ font-size: 17px; left: 10px; }
}
  
@media (max-width: 600px){
.container .forms {padding: 30px 20px; margin: 0; height: auto; border-radius: 0;}
.container .form .heading{ font-size: 28px; margin-bottom: 20px;}
.container { max-width: 100%; box-shadow: none; margin: 0 !important; }
/* Ensure proper spacing with countdown on mobile */
body.auth-page .container {
    margin-top: 15px;
    margin-bottom: 15px;
}
body.auth-page {
    padding-top: 0;
    padding-bottom: 15px;
}
}

.remember_me{ display: flex; align-items: center; gap: 10px; justify-content: space-between; padding-top: 10px; font-size: 12px;
}

.remember_me .remember{ display: inline-flex; align-items: center; gap: 5px; width: 5%; white-space: nowrap; line-height: 1;
}


.remember_me input[type="checkbox"]{ appearance: auto; -webkit-appearance: auto; background: transparent !important; border: none !important; box-shadow: none !important; outline: none !important;
}


/* Base button styles for all buttons */
button:not(.menu-toggle):not(.toggle-password) {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    color: white;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    margin: 8px auto;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-height: 48px;
    min-width: 130px;
    position: relative;
    overflow: hidden;
}

button:not(.menu-toggle):not(.toggle-password)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

button:not(.menu-toggle):not(.toggle-password):hover::before {
    left: 100%;
}

button:not(.menu-toggle):not(.toggle-password):hover { 
    background: linear-gradient(135deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    background-size: 200% 100%;
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(50, 170, 39, 0.5),
        0 6px 15px rgba(46, 139, 87, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(50, 170, 39, 0.4);
}

button:not(.menu-toggle):not(.toggle-password):active {
    transform: translateY(-1px) scale(1);
    box-shadow: 
        0 4px 12px rgba(50, 170, 39, 0.4),
        0 2px 6px rgba(46, 139, 87, 0.3);
} 

.btnS{
  background-color: #0f172a !important; 
  border-radius: 25px !important;
  padding: 10px 35% !important;
}

.btnS:hover { background-color: #32aa27 !important;
} 



a { color: black; text-decoration: none;
}

.signup{ text-align: center; 
}

.signup1:hover { color: #be0a22d7;
}

.already{ text-align: center; transition: all 0.3s ease;
}

.already :hover { color:#be0a22d7;
}

.register a { text-decoration: none;
}

.register{ width: fit-content !important; font-weight: bold; color: #eef6fb; display: block; padding: 10px 15%; width: min(100%, 420px); text-align: center; cursor: pointer; transition: all 0.3s ease; background-color: rgb(0, 102, 153); border-radius: 4px; margin: 10px auto;
}

.register:hover { background-color: #32aa27;
}

.register a { text-decoration: none;
}

/* ----------------------------------Dashboard page---------------------------------------- */

.account-page{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --brand:#0d5e86;
  --brand-weak:#e6f2f8;
  --radius:12px;

  /* ----------------------------for account page------------------------------------- */
  width: 100%;
  min-height: 100%;
  display:block;
  color:var(--text);
  font: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

/* General utility class for hiding elements */
.hidden-until-loaded {
  display: none !important;
}

/* Enhanced loading spinner */
#loading-indicator {
    display: block;
    margin: 50px auto;
    border: 4px solid rgba(50, 170, 39, 0.1);
    border-top: 4px solid #32aa27;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    box-shadow: 0 4px 12px rgba(50, 170, 39, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade-in animation for content */
.hidden-until-loaded {
    display: none !important;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for stats */
.account-page .acc-stat {
    animation: slideInUp 0.6s ease-out backwards;
}

.account-page .acc-stat:nth-child(1) { animation-delay: 0.1s; }
.account-page .acc-stat:nth-child(2) { animation-delay: 0.2s; }
.account-page .acc-stat:nth-child(3) { animation-delay: 0.3s; }
.account-page .acc-stat:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, rgba(35, 45, 59, 0.98) 0%, rgba(26, 35, 41, 0.95) 100%);
  padding: 20px 40px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(50, 170, 39, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(50, 170, 39, 0.7), transparent);
  opacity: 0.8;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.6em;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: -0.8px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #32aa27, #2e8b57);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .logo:hover::after {
  width: 100%;
}

.navbar .logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 8px rgba(50, 170, 39, 0.4));
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 1;
}

.navbar .logo:hover img {
  transform: scale(1.2) rotate(-12deg);
  filter: drop-shadow(0 6px 12px rgba(50, 170, 39, 0.6));
}

.navbar nav {
  display: flex;
  gap: 8px;
}

.navbar nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 24px;
  border-radius: 12px;
  position: relative;
  font-size: 0.95em;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
}

.navbar nav a::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #32aa27, #2e8b57);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(50, 170, 39, 0.6);
}

.navbar nav a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(50, 170, 39, 0.4), rgba(46, 139, 87, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar nav a:hover {
  color: #32aa27;
  background: rgba(50, 170, 39, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(50, 170, 39, 0.3);
}

.navbar nav a:hover::before {
  width: 75%;
}

.navbar nav a:hover::after {
  opacity: 1;
}

 
 
/* Header 
header.homepage-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: bold; color: #2c3e50; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(45deg, #3498db, #2980b9); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
nav.homepage-nav { display: flex; gap: 30px; }
nav.homepage-nav a { text-decoration: none; color: #34495e; font-weight: 500; padding: 8px 16px; border-radius: 6px; transition: all 0.3s ease; }
nav.homepage-nav a:hover { background: #3498db; color: #fff; transform: translateY(-2px); } */


/* --------------------------Frame------------------------------------------------- */
.account-page .acc-frame{ 
    flex: 1; 
    width: 100%; 
    min-height: 100%; 
    background: 
        linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #1e293b 100%),
        radial-gradient(circle at 20% 30%, rgba(50, 170, 39, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(35, 45, 59, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 100% 100%;
    border: none; 
    overflow: scroll;
    position: relative;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.account-page .acc-frame::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(50, 170, 39, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(35, 45, 59, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(50, 170, 39, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 20s ease-in-out infinite;
}

.account-page .acc-frame::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(50, 170, 39, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: shimmer 15s linear infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes shimmer {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ------------------------Header--------------------------------------------- 
.account-page .acc-header{ color: white; display: flex; align-items:center; gap:14px; padding: 16px 20px; border-bottom: 2px solid var(--line); background: #232d3b; justify-content: flex-end;
}
.account-page .acc-avatar{ width: 36px; height: 36px; border-radius: 999px; color:#fff; font-weight: 700; display: grid; place-items: center; background: linear-gradient(135deg,var(--brand),#2a7aa6);
}
.account-page .acc-title{ font-size:20px; 
} */



/* --------------------------Layout (sidebar + content)--------------------------- */
.account-page .acc-layout{ display: grid; grid-template-columns:260px 1fr; height: calc(100vh - 70px);
}

/* --------------------Sidebar------------------------------------------------ */
.account-page .acc-sidebar{ 
    border-right: 1px solid rgba(255, 255, 255, 0.15); 
    padding: 0;
    background: 
        linear-gradient(180deg, rgba(35, 45, 59, 0.98) 0%, rgba(26, 35, 41, 0.98) 100%),
        radial-gradient(circle at top right, rgba(50, 170, 39, 0.1) 0%, transparent 50%);
    box-shadow: 
        8px 0 40px rgba(0, 0, 0, 0.25),
        4px 0 20px rgba(0, 0, 0, 0.15),
        inset 1px 0 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
}

.account-page .acc-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(50, 170, 39, 0.05) 0%, transparent 50%),
        linear-gradient(0deg, rgba(50, 170, 39, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: sidebarGlow 8s ease-in-out infinite;
}

.account-page .acc-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(50, 170, 39, 0.4), transparent);
    opacity: 0.6;
    z-index: 1;
}

@keyframes sidebarGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.account-page .acc-nav{ 
    display: flex; 
    flex-direction: column; 
    gap: 6px;
    padding: 20px 16px;
    flex: 1;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.account-page .acc-nav a{ 
    appearance: none; 
    border: none; 
    background: rgba(255, 255, 255, 0.06); 
    color: rgba(255, 255, 255, 0.9); 
    padding: 16px 18px; 
    width: 100%; 
    text-align: left; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 14px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-page .acc-nav a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(50, 170, 39, 0.3) 0%, transparent 70%);
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    opacity: 0;
}

.account-page .acc-nav a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.account-page .acc-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #32aa27 0%, #2e8b57 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.account-page .acc-nav a:hover{ 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%); 
    color: #ffffff;
    transform: translateX(4px) scale(1.02);
    border-color: rgba(50, 170, 39, 0.4);
    box-shadow: 
        0 4px 16px rgba(50, 170, 39, 0.25),
        0 2px 8px rgba(50, 170, 39, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.account-page .acc-nav a:hover::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    left: -50px;
}

.account-page .acc-nav a:hover i {
    transform: scale(1.2);
}

.account-page .acc-nav a:hover::before {
    transform: scaleY(1);
}

.account-page .acc-nav .is-active{ 
    background: linear-gradient(135deg, rgba(50, 170, 39, 0.3) 0%, rgba(46, 139, 87, 0.25) 100%);
    color: #32aa27;
    font-weight: 700;
    border-color: rgba(50, 170, 39, 0.5);
    box-shadow: 
        0 4px 20px rgba(50, 170, 39, 0.3),
        0 2px 10px rgba(50, 170, 39, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
    position: relative;
}

.account-page .acc-nav .is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #32aa27 0%, #2e8b57 100%);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 15px rgba(50, 170, 39, 0.6);
}

.account-page .acc-nav .is-active i {
    color: #32aa27;
    transform: scale(1.1);
}

.account-page .acc-nav .is-active::before {
    transform: scaleY(1);
}

/* -----------------------Content----------------------------------- */
.account-page .acc-content{ 
    padding: 32px 40px; 
    min-width: 0; 
    width: 80%;
    background: transparent;
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 1;
    color: #e2e8f0;
}

/* -----------------------Stats cards-------------------------------- */
.account-page .acc-stats{ 
    display: grid; 
    gap: 20px; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    margin-bottom: 24px;
}

.account-page .acc-stat{ 
    border: none; 
    border-radius: 24px; 
    padding: 32px 28px; 
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%),
        radial-gradient(circle at top right, rgba(50, 170, 39, 0.1) 0%, transparent 60%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid rgba(50, 170, 39, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(50, 170, 39, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    color: #e2e8f0;
}

.account-page .acc-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(50, 170, 39, 0.4);
}

.account-page .acc-stat:nth-child(1) { animation-delay: 0.1s; }
.account-page .acc-stat:nth-child(2) { animation-delay: 0.2s; }
.account-page .acc-stat:nth-child(3) { animation-delay: 0.3s; }
.account-page .acc-stat:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-page .acc-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    transition: width 0.3s ease;
}

.account-page .acc-stat::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(50, 170, 39, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-page .acc-stat:hover { 
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(50, 170, 39, 0.3),
        0 0 0 2px rgba(50, 170, 39, 0.4),
        inset 0 1px 0 rgba(50, 170, 39, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(50, 170, 39, 0.5);
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(51, 65, 85, 1) 100%),
        radial-gradient(circle at top right, rgba(50, 170, 39, 0.15) 0%, transparent 60%);
}

.account-page .acc-stat:hover::before {
    width: 8px;
    box-shadow: 0 0 25px rgba(50, 170, 39, 0.6);
}

.account-page .acc-stat:hover::after {
    opacity: 1;
}

.account-page .acc-stat .stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: 
        linear-gradient(135deg, rgba(50, 170, 39, 0.2) 0%, rgba(46, 139, 87, 0.15) 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(50, 170, 39, 0.2),
        0 4px 10px rgba(50, 170, 39, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(50, 170, 39, 0.2);
}

.account-page .acc-stat .stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(50, 170, 39, 0.2) 0%, rgba(46, 139, 87, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-page .acc-stat .stat-icon i {
    font-size: 24px;
    color: #32aa27;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.account-page .acc-stat:hover .stat-icon {
    background: 
        linear-gradient(135deg, rgba(50, 170, 39, 0.3) 0%, rgba(46, 139, 87, 0.25) 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    transform: scale(1.2) rotate(8deg);
    box-shadow: 
        0 12px 30px rgba(50, 170, 39, 0.35),
        0 6px 15px rgba(50, 170, 39, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(50, 170, 39, 0.4);
}

.account-page .acc-stat:hover .stat-icon::before {
    opacity: 1;
}

.account-page .acc-stat:hover .stat-icon i {
    transform: scale(1.3) rotate(-5deg);
    color: #28a745;
}

.account-page .acc-stat .label{ 
    color: rgba(226, 232, 240, 0.7); 
    font-weight: 600; 
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-page .acc-stat .label::before {
    display: none;
}

.account-page .acc-stat .value{ 
    font-size: 48px; 
    font-weight: 900; 
    margin-top: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    line-height: 1.1;
    letter-spacing: -2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
}

.account-page .acc-stat:hover .value {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ffffff 0%, #32aa27 30%, #2e8b57 60%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(50, 170, 39, 0.4));
}

/* ---------------------------------Section headings------------------------------ */
.account-page .acc-section{ 
    margin: 48px 0 32px; 
    font-size: 42px; 
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 30%, #cbd5e1 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -1.5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.account-page .acc-section::before {
    content: '';
    width: 5px;
    height: 32px;
    background: linear-gradient(180deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(50, 170, 39, 0.5);
    animation: sectionGlow 3s ease-in-out infinite;
}

.account-page .acc-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(50, 170, 39, 0.4);
    animation: sectionGlow 3s ease-in-out infinite 0.5s;
}

@keyframes sectionGlow {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(50, 170, 39, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 20px rgba(50, 170, 39, 0.8); }
}

/* -----------------------------Table------------------------------------ */
.account-page .acc-tablewrap{ 
    overflow:auto; 
    border: none;
    border-radius:24px; 
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%),
        radial-gradient(circle at top left, rgba(50, 170, 39, 0.08) 0%, transparent 50%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid rgba(50, 170, 39, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(50, 170, 39, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    margin-top: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.account-page .acc-tablewrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(50, 170, 39, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.account-page .acc-tablewrap:hover {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(50, 170, 39, 0.3),
        inset 0 1px 0 rgba(50, 170, 39, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: rgba(50, 170, 39, 0.4);
}

.account-page .acc-tablewrap:hover::before {
    opacity: 1;
}

.account-page table{ 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 520px; 
}

.account-page thead th{ 
    font-weight: 800; 
    text-align: left; 
    background: 
        linear-gradient(180deg, rgba(51, 65, 85, 0.98) 0%, rgba(71, 85, 105, 0.98) 100%),
        linear-gradient(90deg, rgba(50, 170, 39, 0.1) 0%, transparent 100%);
    border-bottom: 3px solid rgba(50, 170, 39, 0.3); 
    padding: 20px 24px; 
    color:#e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.account-page tbody td{ 
    border-top: 1px solid rgba(50, 170, 39, 0.1); 
    padding: 16px 20px; 
    color: #cbd5e1;
    transition: background-color 0.2s ease;
}

.account-page tbody tr{ 
    transition: all 0.2s ease;
    animation: fadeInRow 0.4s ease-out backwards;
}

.account-page tbody tr:nth-child(1) { animation-delay: 0.05s; }
.account-page tbody tr:nth-child(2) { animation-delay: 0.1s; }
.account-page tbody tr:nth-child(3) { animation-delay: 0.15s; }
.account-page tbody tr:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.account-page tbody tr{ 
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.account-page tbody tr:hover{ 
    background: linear-gradient(90deg, rgba(50, 170, 39, 0.15) 0%, rgba(46, 139, 87, 0.12) 100%);
    box-shadow: 
        0 6px 20px rgba(50, 170, 39, 0.25),
        0 2px 8px rgba(50, 170, 39, 0.15);
    transform: translateX(6px) scale(1.01);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid rgba(50, 170, 39, 0.6);
}

.account-page .acc-spacer{ 
    height: 20vh; 
    min-height: 100px;
    clear: both;
}

/*------------------------------------- Responsive ------------------------*/
@media (max-width:900px){
.account-page .acc-layout{ 
    grid-template-columns:1fr; 
}

.account-page .acc-sidebar{ 
    width: 100%; 
    border-right:0; 
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    margin-bottom: 0; 
    height: fit-content; 
    overflow-x: auto; 
    padding: 12px 16px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.account-page .acc-nav::-webkit-scrollbar{ 
    width: 0;
    height: 4px;
}

.account-page .acc-nav::-webkit-scrollbar-thumb {
    background: rgba(50, 170, 39, 0.5);
    border-radius: 2px;
}

.account-page .acc-nav{ 
    display: flex; 
    flex-direction:row; 
    gap: 8px; 
    overflow-x: auto; 
    overflow-y: hidden; 
    padding: 8px 4px;
    background: transparent;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.account-page .acc-nav button{ 
    white-space: nowrap; 
}

.acc-sidebar .acc-nav a{ 
    margin: 0 !important; 
    padding: 12px 16px; 
    text-align: center; 
    white-space: nowrap;
    font-size: 13px;
    min-width: fit-content;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.acc-sidebar .acc-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.acc-sidebar .acc-nav a.is-active {
    background: linear-gradient(135deg, rgba(50, 170, 39, 0.25) 0%, rgba(46, 139, 87, 0.2) 100%);
    color: #32aa27;
}

.account-page .acc-content{ 
    margin-top: 0 !important;
    padding: 24px 20px !important;
    width: 100% !important;
}

.account-page .acc-stats {
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

.account-page .acc-stat {
    padding: 20px 16px;
}

.account-page .acc-stat .value {
    font-size: 28px;
}

.account-page .acc-tablewrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.account-page table {
    min-width: 600px;
}

.dashboard-welcome {
    padding: 24px 20px;
    margin-bottom: 24px;
}

.dashboard-welcome h2 {
    font-size: 24px;
}

.dashboard-welcome p {
    font-size: 14px;
}

.account-page .acc-section {
    font-size: 20px;
    margin: 24px 0 16px;
}

/* ---------------------------------page scroll-------------------------------- */
body.dashboard-page { overflow: auto; }

/* ------------------------------frame and layout grow instead of locking to vh------------------- */
.account-page .acc-frame { overflow: auto; height: auto; min-height: 100vh; }
.account-page .acc-layout { height: auto; }  /* overrides calc(100vh - 70px) */
.account-page .acc-content { overflow: visible !important; } /* or auto */
}

/* -----------------------universally-------------------------------- */
.account-page .acc-frame { overflow: auto; }

.container{ width:min(100%, 680px); padding:20px 20px; }
.account-page .acc-frame,
.account-page .acc-content { -webkit-overflow-scrolling: touch; }

/* Enhanced Dashboard Welcome Section */
.dashboard-welcome {
    background: 
        linear-gradient(135deg, rgba(35, 45, 59, 0.98) 0%, rgba(26, 35, 41, 0.98) 100%),
        radial-gradient(circle at top right, rgba(50, 170, 39, 0.15) 0%, transparent 60%);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(50, 170, 39, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.dashboard-welcome::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #32aa27, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.dashboard-welcome h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    letter-spacing: -1px;
}

.dashboard-welcome h2::before {
    content: '';
    width: 5px;
    height: 36px;
    background: linear-gradient(180deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(50, 170, 39, 0.6);
    animation: sectionGlow 3s ease-in-out infinite;
}

.dashboard-welcome p {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    margin-left: 16px;
}

@media (max-width:600px){
.account-page .acc-stat{ 
    text-align: center; 
    width: 100%; 
    padding: 18px 16px;
}

.account-page .acc-stat .label {
    font-size: 12px;
}

.account-page .acc-stat .value {
    font-size: 32px;
}

.account-page .acc-stats{ 
    grid-template-columns:1fr; 
    gap: 12px;
}

.account-page .acc-header{ 
    padding:12px 14px; 
}

.account-page .acc-content{ 
    padding: 16px 12px !important; 
    width: 100% !important;
}

.account-page .acc-title{ 
    font-size:20px; 
}

.dashboard-welcome { 
    padding: 20px 16px; 
    margin-bottom: 20px;
    border-radius: 16px;
}

.dashboard-welcome h2 { 
    font-size: 20px; 
    margin-bottom: 6px;
}

.dashboard-welcome p {
    font-size: 13px;
}

.account-page .acc-section { 
    font-size: 18px; 
    margin: 20px 0 12px;
    padding-bottom: 8px;
}

.account-page .acc-section::after {
    width: 40px;
    height: 3px;
}

.account-page .acc-tablewrap {
    border-radius: 12px;
    margin-top: 4px;
}

.account-page thead th {
    padding: 12px 14px;
    font-size: 11px;
}

.account-page tbody td {
    padding: 12px 14px;
    font-size: 13px;
}

.account-page table {
    min-width: 500px;
}

.orders-controls {
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.orders-filter,
.orders-search {
    width: 100%;
    min-width: 100%;
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
}

.account-page .acc-content .profile-card {
    padding: 16px 18px;
    border-radius: 12px;
}

.account-page .acc-content .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
}

.account-page .acc-content .profile-actions {
    flex-wrap: wrap;
    gap: 8px;
}

.settings-card {
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.orders-empty {
    padding: 32px 20px;
    margin-top: 16px;
}

.orders-empty-title {
    font-size: 16px;
}

.orders-empty-subtitle {
    font-size: 13px;
}

.account-page .acc-sidebar {
    padding: 10px 12px;
}

.acc-sidebar .acc-nav a {
    padding: 10px 14px;
    font-size: 12px;
}

.account-page .acc-spacer {
    height: 10vh;
}
}


/* Enhanced profile card styling */
.account-page .acc-content .profile-card { 
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%),
        radial-gradient(circle at top right, rgba(50, 170, 39, 0.1) 0%, transparent 50%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid rgba(50, 170, 39, 0.2);
    border-radius: 24px; 
    padding: 36px 40px; 
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(50, 170, 39, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    color: #e2e8f0;
}

.account-page .acc-content .profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.account-page .acc-content .profile-card:hover {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(50, 170, 39, 0.3),
        inset 0 1px 0 rgba(50, 170, 39, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    border-color: rgba(50, 170, 39, 0.4);
}

.account-page .acc-content .profile-card:hover::before {
    opacity: 1;
}

/* --------------------Section title spacing ----------------------------- */
.account-page .acc-content .profile-card .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}

/* -----------------Action buttons (Edit / Save / Cancel)--------------------- */
.account-page .acc-content .profile-actions { 
    display: flex; 
    gap: 10px; 
    align-items: center;
    flex-wrap: wrap;
}

#editButton, #saveBtn, #cancelBtn,
#removeAvatarBtn { 
    padding: 14px 28px; 
    border-radius: 14px; 
    font-weight: 700; 
    font-size: 15px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 100%;
    color: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-height: 48px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

#editButton::before, #saveBtn::before, #cancelBtn::before,
#removeAvatarBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#editButton:hover::before, #saveBtn:hover::before, #cancelBtn:hover::before,
#removeAvatarBtn:hover::before {
    left: 100%;
}

#editButton:hover, #saveBtn:hover, #cancelBtn:hover,
#removeAvatarBtn:hover { 
    background: linear-gradient(135deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    background-size: 200% 100%;
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(50, 170, 39, 0.4),
        0 6px 15px rgba(50, 170, 39, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(50, 170, 39, 0.3);
}

#editButton:active, #saveBtn:active, #cancelBtn:active,
#removeAvatarBtn:active {
    transform: translateY(0);
}

#cancelBtn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

#cancelBtn:hover {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 6px 12px rgba(107, 114, 128, 0.3);
}

#saveBtn[disabled], #cancelBtn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
#saveBtn:disabled, #cancelBtn:disabled { opacity: .6; cursor: not-allowed;
}

/* -------------------Profile picture Upload (red)-----------------  */
.account-page .acc-content .btn-upload { 
    font-size: 14px; 
    display: inline-block; 
    padding: 14px 28px; 
    border-radius: 14px; 
    font-weight: 700; 
    color: #fff; 
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #dc2626 100%);
    background-size: 200% 100%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(220, 38, 38, 0.3),
        0 4px 10px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.account-page .acc-content .btn-upload::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.account-page .acc-content .btn-upload:hover::before {
    left: 100%;
}

.account-page .acc-content .btn-upload:hover { 
    background: linear-gradient(135deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    background-size: 200% 100%;
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(50, 170, 39, 0.4),
        0 6px 15px rgba(50, 170, 39, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(50, 170, 39, 0.3);
}

/* ----------------------------Profile picture row-------------------- */
.account-page .acc-content .avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
#avatarPreview { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(34,197,94,.25)); border: 1px solid rgba(0,0,0,.08);
}
#avatarInput { display: none; }
.account-page .acc-content .avatar-controls { display: flex; gap: 10px; align-items: center;
}
.account-page .acc-content .avatar-meta { color: var(--muted); font-size: 12px;
}

/* ---------------------Profile Form --------------------------*/
#userProfile label { display: block; color: #e2e8f0; font-size: 12px; margin-bottom: 6px;
}
#userProfile input,
#userProfile select,
#userProfile textarea { width: 100%; height: 36px; padding: 6px 10px; border: 1px solid rgba(50, 170, 39, 0.2); border-radius: 8px; outline: none; background: rgba(30, 41, 59, 0.8); color: #e2e8f0;
}
#userProfile textarea { min-height: 84px; resize: vertical;
}
#userProfile input:focus,
#userProfile select:focus,
#userProfile textarea:focus { border-color: #32aa27; box-shadow: 0 0 0 3px rgba(50, 170, 39, 0.15);
}

/* -------------------Grid rows------------------------------ */
.account-page .acc-content .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; margin-bottom: 2%;
}

/* --------------------Section dividers------------------------ */
.account-page .acc-content .profile-divider { border: none; border-top: 1px solid rgba(50, 170, 39, 0.2); margin: 18px 0;
}

/* ---------------------Status text----------------------------- */
#saveStatus { color: rgba(226, 232, 240, 0.7); font-size: 12px; margin-top: 10px; min-height: 18px;
}

/***** Responsive *****/
/* Mobile-specific enhancements for account pages */
@media (max-width: 768px) {
    /* Better spacing for account content */
    .account-page .acc-content {
        padding: 20px 16px !important;
    }
    
    /* Stats cards - 2 columns on tablet */
    .account-page .acc-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    /* Table improvements */
    .account-page .acc-tablewrap {
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    /* Form improvements */
    .orders-controls {
        flex-wrap: wrap;
    }
    
    .orders-filter {
        flex: 1;
        min-width: 140px;
    }
    
    .orders-search {
        flex: 1;
        min-width: 200px;
    }
    
    /* Profile card mobile */
    .account-page .acc-content .profile-card {
        padding: 18px 20px;
    }
    
    /* Settings card mobile */
    .settings-card {
        padding: 20px 22px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .account-page .acc-nav a {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .acc-sidebar .acc-nav a {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .account-page .acc-stat {
        min-height: 100px;
    }
    
    .orders-filter,
    .orders-search {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    /* Remove hover effects on touch devices */
    .account-page .acc-stat:hover {
        transform: none;
    }
    
    .account-page tbody tr:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
  .account-page .acc-content .avatar-row { 
      align-items: flex-start; 
      flex-direction: column;
      gap: 12px;
  }
  
  .account-page .acc-content .profile-actions { 
      flex-wrap: wrap; 
      justify-content: flex-start;
      width: 100%;
  }
  
  .account-page .acc-content .profile-card {
      padding: 16px 18px;
  }
  
  #userProfile input,
  #userProfile select,
  #userProfile textarea {
      font-size: 16px; /* Prevents iOS zoom */
      min-height: 44px;
  }
  
  .settings-card {
      padding: 16px 18px;
  }
  
  input,
  select,
  textarea {
      font-size: 16px; /* Prevents iOS zoom */
      min-height: 44px;
  }
}


/* Enhanced controls */
.orders-controls{ 
    display: flex; 
    gap: 16px; 
    align-items: center; 
    margin: 24px 0;
    flex-wrap: wrap;
    padding: 24px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 2px solid rgba(50, 170, 39, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(50, 170, 39, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.orders-controls:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(50, 170, 39, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(50, 170, 39, 0.4);
}

.orders-filter{ 
    padding: 14px 18px; 
    border: 1px solid rgba(50, 170, 39, 0.2); 
    border-radius: 12px; 
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    color: #e2e8f0;
}

.orders-filter:hover {
    border-color: rgba(50, 170, 39, 0.3);
    box-shadow: 0 4px 12px rgba(50, 170, 39, 0.15);
    transform: translateY(-1px);
}

.orders-filter:focus {
    outline: none;
    border-color: #32aa27;
    box-shadow: 0 0 0 3px rgba(50, 170, 39, 0.1);
}

.orders-search{ 
    flex: 1; 
    min-width: 200px; 
    padding: 14px 18px; 
    border: 1px solid rgba(50, 170, 39, 0.2); 
    border-radius: 12px; 
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #e2e8f0;
}

.orders-search:hover {
    border-color: rgba(50, 170, 39, 0.3);
    box-shadow: 0 4px 12px rgba(50, 170, 39, 0.15);
    transform: translateY(-1px);
}

.orders-search:focus {
    outline: none;
    border-color: #32aa27;
    box-shadow: 0 0 0 3px rgba(50, 170, 39, 0.1);
}

/* --------------------------------My listing------------------*/
.badge { padding:4px 8px; border-radius:999px; font-weight:600; font-size:12px; }
.badge.active   { background:#e6f8ef; color:#166534; }
.badge.sold     { background:#fff4e6; color:#9a3412; }
.badge.archived { background:#eef2f7; color:#374151; }
.table-actions .btn { margin-inline:2px; }


/* ----------------------Status badges---------------------- */
.badge{ 
    display:inline-block; 
    padding: 6px 12px; 
    border-radius: 12px; 
    font-size: 11px; 
    font-weight: 800; 
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.badge:hover::before {
    left: 100%;
}

.badge.placed{ 
    background: linear-gradient(135deg, #eef6fb 0%, #dbeafe 100%);
    color:#0d5e86; 
    border-color: rgba(13, 94, 134, 0.2);
    box-shadow: 
        0 2px 8px rgba(13, 94, 134, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge.processing{ 
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color:#b45309; 
    border-color: rgba(180, 83, 9, 0.2);
    box-shadow: 
        0 2px 8px rgba(180, 83, 9, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge.shipped{ 
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color:#4338ca; 
    border-color: rgba(67, 56, 202, 0.2);
    box-shadow: 
        0 2px 8px rgba(67, 56, 202, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge.delivered{ 
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color:#047857; 
    border-color: rgba(4, 120, 87, 0.2);
    box-shadow: 
        0 2px 8px rgba(4, 120, 87, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge.canceled{ 
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color:#b91c1c; 
    border-color: rgba(185, 28, 28, 0.2);
    box-shadow: 
        0 2px 8px rgba(185, 28, 28, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---------------------Actions in table------------------- */
.table-actions{ 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    flex-wrap: wrap;
}

.table-actions .btn{ 
    padding: 12px 20px; 
    border-radius: 12px; 
    border: 2px solid transparent; 
    background: linear-gradient(135deg, #232d3b 0%, #1a2329 50%, #232d3b 100%);
    background-size: 200% 100%;
    color: #fff;
    cursor: pointer; 
    font-weight: 700;
    font-size: 13px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-height: 44px;
    min-width: 90px;
    position: relative;
    overflow: hidden;
}

.table-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.table-actions .btn:hover::before {
    left: 100%;
}

.table-actions .btn:hover{ 
    background: linear-gradient(135deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    background-size: 200% 100%;
    background-position: right center;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(50, 170, 39, 0.4),
        0 4px 10px rgba(50, 170, 39, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(50, 170, 39, 0.3);
}

.table-actions .btn:active {
    transform: translateY(0);
}

.table-actions .btn[disabled]{ 
    opacity: 0.5; 
    cursor: not-allowed;
    pointer-events: none;
}

/* Enhanced buttons with ripple effect */
.btn, button, .table-actions .btn, #editButton, #saveBtn, #cancelBtn, #removeAvatarBtn {
    position: relative;
    overflow: hidden;
}

.btn::after, button::after, .table-actions .btn::after, 
#editButton::after, #saveBtn::after, #cancelBtn::after, #removeAvatarBtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.btn:active::after, button:active::after, .table-actions .btn:active::after,
#editButton:active::after, #saveBtn:active::after, #cancelBtn:active::after, #removeAvatarBtn:active::after {
    width: 300px;
    height: 300px;
}

/* Enhanced form inputs */
input, select, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(50, 170, 39, 0.2);
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
}

/* Override for auth page inputs - ensure text is visible on white background */
.auth-page .input-field input,
.auth-page .password-field input {
    background: #fff !important;
    color: #0f172a !important;
}

.auth-page .input-field input:focus,
.auth-page .password-field input:focus {
    background: #fff !important;
    color: #0f172a !important;
}

input:hover, select:hover, textarea:hover {
    border-color: rgba(50, 170, 39, 0.3);
    box-shadow: 0 2px 8px rgba(50, 170, 39, 0.1);
}

input:focus, select:focus, textarea:focus {
    transform: translateY(-1px);
    border-color: #32aa27;
    box-shadow: 0 0 0 3px rgba(50, 170, 39, 0.15), 0 4px 12px rgba(50, 170, 39, 0.15);
    outline: none;
}

/* Smooth scroll behavior */
.account-page .acc-frame {
    scroll-behavior: smooth;
}

/* Enhanced empty state */
.orders-empty{ 
    display: none; 
    padding: 64px 32px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px dashed rgba(50, 170, 39, 0.2); 
    border-radius: 24px; 
    margin-top: 32px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    z-index: 1;
}

.orders-empty::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(50, 170, 39, 0.05) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.orders-empty::before {
    content: '📭';
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.orders-empty-title{ 
    font-weight: 700; 
    margin-bottom: 8px;
    font-size: 18px;
    color: #0f172a;
    position: relative;
    z-index: 1;
}

.orders-empty-subtitle{ 
    color: var(--muted);
    font-size: 14px;
}

/*------------------------ Status line --------------------------*/
.orders-status{ color: var(--muted); font-size: 12px; margin-top: 10px;
}

/* Responsive */
@media (max-width: 700px){
.orders-controls{ flex-wrap: wrap; }
.orders-search{ min-width: 140px; }
}

/* Enhanced settings card */
.settings-card { 
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(50, 170, 39, 0.2);
    border-radius: 20px; 
    padding: 32px 36px; 
    margin-bottom: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(50, 170, 39, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
    color: #e2e8f0;
}

.settings-card:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(50, 170, 39, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: rgba(50, 170, 39, 0.4);
}

.settings-card.danger {
    border-left: 4px solid #dc2626;
}
.settings-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px;
}

.settings-subhead { margin: 0 0 6px 0;
}

.settings-block { margin-top: 6px;
}

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}

.form-row + .form-row { margin-top: 12px;
}

.settings-divider { border: none; border-top: 1px solid rgba(50, 170, 39, 0.2); margin: 16px 0;
}

.password-hints { border: 1px dashed rgba(50, 170, 39, 0.3); border-radius: 8px; padding: 10px; color: rgba(226, 232, 240, 0.7); background: rgba(30, 41, 59, 0.6);
}

.password-hints ul { margin: 0 0 0 18px;
}

label { display: block; color: #e2e8f0; font-size: 12px; margin-bottom: 8px; margin-top: 10px;
}

input { width: 100%; height: 36px; padding: 6px 10px; border: 1px solid rgba(50, 170, 39, 0.2); border-radius: 8px; outline: none; background: rgba(30, 41, 59, 0.8); color: #e2e8f0;
}

input:focus { border-color: #32aa27; box-shadow: 0 0 0 3px rgba(50, 170, 39, 0.15);
}

.settings-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px;
}

/*for settings password*/
.pw-field {
  position: relative;
}

.pw-field input {
  width: 100%;
  padding-right: 42px; /* space for the eye */
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f172a;         /* match your theme */
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  background: transparent;
}

.toggle-password:focus { outline: 2px solid #cfe5f1; outline-offset: 2px; }


/* --------------------Buttons--------------------------- */
.btn { 
    padding: 14px 28px; 
    border-radius: 14px; 
    border: 2px solid transparent; 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 100%;
    color: #fff; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover { 
    background: linear-gradient(135deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    background-size: 200% 100%;
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(50, 170, 39, 0.4),
        0 6px 15px rgba(50, 170, 39, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(50, 170, 39, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn.primary { 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.2);
}

.btn.primary:hover { 
    background: linear-gradient(135deg, #32aa27 0%, #2e8b57 100%);
    box-shadow: 0 8px 16px rgba(50, 170, 39, 0.4);
}

.btn.danger { 
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff; 
    border: none;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.btn.danger:hover { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    filter: brightness(1.1);
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.4);
}

.btn.secondary {
    background: #fff;
    color: #0f172a;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn.secondary:hover {
    background: #f8fafc;
    border-color: #32aa27;
    color: #32aa27;
    box-shadow: 0 4px 8px rgba(50, 170, 39, 0.15);
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn i {
    font-size: 14px;
}

/* -----------------------Danger zone layout------------------- */
.danger-row { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between;
}

/* -------------------------Status text------------------------- */
.muted { color: var(--muted, #6b7280);
}

/* Responsive */
@media (max-width: 900px) {
.form-row { grid-template-columns: 1fr;
  }

.danger-row { flex-direction: column; align-items: stretch;
  }

.settings-actions { justify-content: flex-start;
  }
}

/* Force text to be visible within your main content areas */
#unverifiedSection h2,
#unverifiedSection p,
#unverifiedSection strong,
#unverifiedSection button,
#verifiedSection h2,
#verifiedSection p,
#verifiedSection strong,
#verifiedSection button {
    color: #333 !important;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important; /* A dark grey, easily visible on white */
    /* background-color: transparent !important; */ /* Ensure no background conflicts */
}

#unverifiedSection button, #verifiedSection button {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
  color: white !important;
}

/* This rule will ensure the main message text itself has a proper color */
#displayMessage {
    color: #333 !important;
    
}


/*For back to home option*/
.authfoot{
  margin-top: 12px;
  text-align: center;          /* or center if you prefer */
}

.authfoot .home-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  padding: 6px 8px;
  border-radius: 8px;
}

.authfoot .home-link::before{
  content: "←";
  font-size: 1rem;
  line-height: 1;
}

.authfoot .home-link:hover{
  color: #32aa27;
}

.authfoot .home-link:focus-visible{
  outline: 2px solid #2563eb;   /* keyboard focus */
  outline-offset: 2px;
}

/* style.css */
.app-loading-state {
    /* Style your loading indicator here */
    display: flex; /* Example: to center content */
    justify-content: center;
    align-items: center;
    height: 100vh; /* Takes full viewport height */
    font-size: 1.2em;
    color: #666;
    background-color: #f0f0f0;
}

.app-hidden-state {
    display: none !important; /* Force this to be hidden */
}

/* if email unverified */
.message-box {
  background-color: #fff3cd; /* Light yellow */
  border: 1px solid #ffeeba;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #856404;
  text-align: center;
}
.error-message {
  background-color: #f8d7da; /* Light red */
  border-color: #f5c6cb;
  color: #721c24;
}
.error-message button,
#resendVerificationEmailBtn,
#logoutFromVerificationMessageBtn {
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 44px;
  min-width: 150px;
}

.error-message button:hover,
#resendVerificationEmailBtn:hover,
#logoutFromVerificationMessageBtn:hover {
  background: linear-gradient(135deg, #32aa27 0%, #2e8b57 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(50, 170, 39, 0.3);
}

#logoutFromVerificationMessageBtn {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

#logoutFromVerificationMessageBtn:hover {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  box-shadow: 0 6px 12px rgba(107, 114, 128, 0.3);
}

/* Footer Styles - Matching index.html */
.footer {
    background: linear-gradient(135deg, #14191e 0%, #232d3b 100%);
    color: #ffffff;
    padding: 60px 20px 30px;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    clear: both;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #32aa27, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 16px;
    font-weight: 600;
    color: #32aa27;
}

.footer-section p,
.footer-section a {
    display: block;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-section a {
    position: relative;
    display: inline-block;
}

.footer-section a:hover {
    color: #32aa27;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 0;
    background: transparent;
    transition: width 0.3s ease;
}

.footer-section a:hover::before {
    width: 4px;
    background: #32aa27;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ffffff;
    margin: 0 16px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '•';
    position: absolute;
    right: -10px;
    color: rgba(255,255,255,0.3);
}

.footer-links a:last-child::after {
    display: none;
}

.footer-links a:hover {
    color: #32aa27;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: 1.2em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    background: #32aa27;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 170, 39, 0.3);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    margin-top: 20px;
}

/* Swap request buttons - hover effects */
.btn-accept-swap,
.btn-accept-request {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #fff !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 6px rgba(34, 197, 94, 0.3) !important;
  min-height: 44px !important;
  min-width: 100px !important;
}

.btn-reject-swap,
.btn-reject-request {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3) !important;
  min-height: 44px !important;
  min-width: 100px !important;
}

.btn-accept-swap:hover,
.btn-accept-request:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(34, 197, 94, 0.4) !important;
}

.btn-reject-swap:hover,
.btn-reject-request:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.4) !important;
}

.btn-accept-swap:active,
.btn-accept-request:active {
  transform: translateY(0) !important;
}

.btn-reject-swap:active,
.btn-reject-request:active {
  transform: translateY(0) !important;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle:focus {
    outline: 2px solid #32aa27;
    outline-offset: 2px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 12px 20px;
        flex-wrap: wrap;
    }
    
    .navbar .logo {
        font-size: 1.2em;
    }
    
    .navbar .logo img {
        width: 28px;
        height: 28px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .navbar nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar nav.active {
        display: flex;
    }
    
    .navbar nav a {
        padding: 12px 15px;
        width: 100%;
        text-align: left;
        border-radius: 6px;
        margin: 4px 0;
        font-size: 0.95em;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .navbar nav a::before {
        display: none;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .navbar nav a {
        min-height: 44px;
        padding: 14px 15px;
    }
    
    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .navbar nav a:hover {
        background: transparent;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar nav {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Message Modal Styles */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.message-modal-content {
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%),
        radial-gradient(circle at top right, rgba(50, 170, 39, 0.1) 0%, transparent 60%);
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(50, 170, 39, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(50, 170, 39, 0.2);
    backdrop-filter: blur(30px) saturate(180%);
    position: relative;
}

.message-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    box-shadow: 0 0 15px rgba(50, 170, 39, 0.4);
    border-radius: 24px 0 0 24px;
}

.message-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(50, 170, 39, 0.2);
}

.message-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 30%, #cbd5e1 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(226, 232, 240, 0.7);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.message-modal-close:hover {
    background: rgba(50, 170, 39, 0.15);
    color: #32aa27;
    transform: rotate(90deg);
}

.message-modal-subject {
    padding: 12px 24px;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(50, 170, 39, 0.2);
    font-weight: 500;
    color: rgba(226, 232, 240, 0.8);
}

.message-thread {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    min-height: 300px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(15, 23, 42, 0.3);
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 70%;
    word-wrap: break-word;
}

.message-bubble.sent {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.message-bubble.received {
    background: 
        linear-gradient(135deg, rgba(51, 65, 85, 0.95) 0%, rgba(71, 85, 105, 0.95) 100%);
    color: #e2e8f0;
    align-self: flex-start;
    border: 1px solid rgba(50, 170, 39, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(50, 170, 39, 0.1);
}

.message-author {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
}

.message-content {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.message-image-container {
    margin-bottom: 8px;
}

.message-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: contain;
    display: block;
    margin-top: 4px;
}

.message-image:hover {
    opacity: 0.9;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    text-align: right;
}

.message-reply-form {
    padding: 20px 24px;
    border-top: 1px solid rgba(50, 170, 39, 0.2);
    display: flex;
    gap: 12px;
    background: rgba(30, 41, 59, 0.6);
}

.message-reply-form textarea {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(50, 170, 39, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-reply-form textarea:hover {
    border-color: rgba(50, 170, 39, 0.3);
    box-shadow: 0 2px 8px rgba(50, 170, 39, 0.1);
}

.message-reply-form textarea:focus {
    outline: none;
    border-color: #32aa27;
    box-shadow: 0 0 0 3px rgba(50, 170, 39, 0.15);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.btn-send-reply {
    padding: 12px 24px;
    background: linear-gradient(135deg, #32aa27 0%, #2e8b57 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-send-reply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 170, 39, 0.3);
}

.btn-compose {
    padding: 12px 24px;
    background: linear-gradient(135deg, #32aa27 0%, #2e8b57 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: auto;
}

.btn-compose:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 170, 39, 0.3);
}

.btn-view-msg, .btn-archive-msg {
    padding: 6px 12px;
    margin: 0 4px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-msg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.btn-view-msg:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.btn-archive-msg {
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(50, 170, 39, 0.2);
}

.btn-archive-msg:hover {
    background: rgba(51, 65, 85, 1);
    border-color: rgba(50, 170, 39, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 170, 39, 0.2);
}

.unread-message {
    background: #fef3c7;
}

.unread-message td {
    font-weight: 600;
}

/* Compose Message Modal */
.compose-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.compose-modal-content {
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%),
        radial-gradient(circle at top right, rgba(50, 170, 39, 0.1) 0%, transparent 60%);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    padding: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(50, 170, 39, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(50, 170, 39, 0.2);
    backdrop-filter: blur(30px) saturate(180%);
    position: relative;
}

.compose-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #32aa27 0%, #2e8b57 50%, #32aa27 100%);
    box-shadow: 0 0 15px rgba(50, 170, 39, 0.4);
    border-radius: 24px 0 0 24px;
}

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

.compose-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 30%, #cbd5e1 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.compose-form-group {
    margin-bottom: 16px;
}

.compose-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e2e8f0;
}

.compose-form-group input,
.compose-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(50, 170, 39, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.compose-form-group input:hover,
.compose-form-group textarea:hover {
    border-color: rgba(50, 170, 39, 0.3);
    box-shadow: 0 2px 8px rgba(50, 170, 39, 0.1);
}

.compose-form-group input:focus,
.compose-form-group textarea:focus {
    outline: none;
    border-color: #32aa27;
    box-shadow: 0 0 0 3px rgba(50, 170, 39, 0.15);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.compose-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.compose-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-cancel-compose {
    padding: 12px 24px;
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    border: 2px solid rgba(50, 170, 39, 0.2);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-compose:hover {
    background: rgba(51, 65, 85, 1);
    border-color: rgba(50, 170, 39, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 170, 39, 0.2);
}

.btn-send-compose {
    padding: 12px 24px;
    background: linear-gradient(135deg, #32aa27 0%, #2e8b57 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-send-compose:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 170, 39, 0.3);
}

@media (max-width: 768px) {
    .message-modal-content,
    .compose-modal-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .orders-controls {
        flex-direction: column;
    }
    
    .btn-compose {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }
    
    .message-reply-form {
        flex-direction: column;
    }
    
    .btn-send-reply {
        width: 100%;
    }
}

