/* style_fixed.css (generated from your style (9).css, cleaned and stabilized) */

:root {
  /* --- 1. THEME COLORS --- */
  --surface-base: 224, 229, 236;
  --surface-light: rgb(240, 244, 248);
  --surface-mid: rgb(208, 214, 224);
  --headerfooter: #a5bccb; /* rgb(170,180,190); */
  --scrollable: #7b8c97; /*rgb(104, 117, 130); */

  --bg-gradient: linear-gradient(180deg, #bdc3c7 0%, #202b34 100%);
  --phone: #D5DDDD;

  --glass: rgba(224, 229, 236, 0.6);
  --stroke: rgba(255, 255, 255, 0.45);
  --blur: 14px;

  --text-light: #FFFFFF;
  --text-main: #EEEEEE;
  --text-muted:  #EEEEEE;
  --text-dark: #113344;
  --text-black: #000000;
  --accent-color: #00b4d8;
  --glow-cyan: #00f2ff;
  --glow-white: #ffffff;

  --neo1: #ffffff;
  --neo2: #c5ced6;

  --shadow-phone: 0 30px 80px rgba(0,0,0,0.25);
  --shadow-raised: 6px 6px 12px rgba(70, 90, 110, 0.2), -6px -6px 12px rgba(255, 255, 255, 0.9);
  --shadow-inset: inset 4px 4px 8px rgba(70, 90, 110, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.9);

  --radius-phone: 40px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --pad: 18px;
  
  /* --- NEW: CENTRALIZED INPUT VARIABLES --- */
  --input-bg: #e0e5ec;
  --input-border: rgba(255, 255, 255, 0.4);
  --input-radius: 20px;
  
  /* The "Pressed" look */
  --input-shadow: inset 4px 4px 8px rgba(70, 90, 110, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.9);
  
  /* The "Glow" when you click */
  --input-focus-bg: #e6ebf1;
  --input-focus-border: var(--accent-color);
  --input-focus-shadow: inset 6px 6px 12px rgba(0,0,0,0.15), inset -6px -6px 12px rgba(255,255,255,0.9);
}

*{ box-sizing:border-box; }
html, body{ height:100%; margin:0; }

body{
  font-family: 'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.1px;
  background: var(--bg-gradient);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px;
  color: var(--text-main);
}

.title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  
    position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-item {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 14px 18px;
  color: var(--text-dark);

}

.contact-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.contact-meta {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
}

button,
.enter-btn {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

h1, h2, h3, h4, h5 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

.app-container{
  width: min(430px, 94vw);
  height: min(860px, 94vh);
  border-radius: var(--radius-phone);
  background: var(--phone);
  box-shadow: var(--shadow-phone);
  border: 3px solid rgba(255,255,255,0.8);
  position: relative;
  display: flex;
  flex-direction: column; /* Vertical stack: Header -> Content -> Composer */
  overflow: hidden;
}

@supports (height: 100dvh){ .app-container{ height: min(860px, 94dvh); } }
@supports (height: 100svh){ .app-container{ height: min(860px, 94svh); } }

/* --- GLASS HEADER --- */
.header{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 0 var(--pad);
  background: var(--headerfooter);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  z-index: 10;
}

.title{
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: var(--text-dark);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.header-avatar-link{ text-decoration:none; }
.header-avatar{
  width: 40px;
  height: 40px;
  border-radius: 20px;
  overflow:hidden;
  background: linear-gradient(145deg, var(--neo1), var(--neo2));
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(255,255,255,0.6);
}
.header-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--neo1), var(--neo2));
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(255,255,255,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  transition: all 0.2s ease;
  color: var(--text-dark);
}

.icon-btn:hover {
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--glow-cyan);
  border-color: #fff;
}

.icon-btn:active{
  transform: translateY(1px);
  box-shadow: var(--shadow-inset);
}

.icon-btn.hamburger::before{
  content:"";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark);
  box-shadow: 0 6px 0 var(--text-dark), 0 -6px 0 var(--text-dark);
  transition: all 0.2s ease;
  color: var(--text-dark);
}

.icon-btn.hamburger:hover::before {
  background: var(--accent-color);
  box-shadow: 0 6px 0 var(--accent-color), 0 -6px 0 var(--accent-color);
}

/* --- GLASS FOOTER --- */
.footer{
  position:absolute;
  left:0; right:0; bottom:0;
  height: 74px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px var(--pad);
  background:  var(--headerfooter); 
  border-top: 1px solid var(--stroke);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  z-index: 10;
}

/* --- CONTENT LIST --- */
.scrollable{
  background: var(--scrollable);
  height: calc(100% - 64px - 74px);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px var(--pad) 18px var(--pad);
}
.scrollable::-webkit-scrollbar{ width:0; height:0; }

/* Add this anywhere below your standard .scrollable definition */
.scrollable {
  
  background-image: linear-gradient(rgba(120, 150,170,0.5), rgba(120, 150,170,0.5)), url('/bg69.png'); 
  background-size: 600px;
  background-position: bottom;
  background-attachment: fixed; /* Optional: keeps the image still while content scrolls */
  
  /* You might also want to blend it with your existing theme */
  /* background-color: var(--surface-mid); */
  /* background-blend-mode: overlay; */
}

.contacts-list{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.contact-item-link{ text-decoration:none; color:inherit; }

/* --- CONTACT CARDS --- */
.contact-card{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  
  background: rgba(200,220,240,0.6);
  /* background: linear-gradient(145deg, #ffffff, #caced3); */
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(255,255,255,0.5);
  transition: transform 0.2s;
}

.contact-card:active{
  box-shadow: var(--shadow-inset);
  transform: scale(0.98);
}

.mini-avatar{
  width: 46px;
  height: 46px;
  border-radius: 23px;
  overflow:hidden;
  background: #cdd5d8;
  box-shadow: var(--shadow-inset);
  border: 1px solid rgba(255,255,255,0.4);
  flex: 0 0 auto;
}
.mini-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.contact-details{ min-width:0; color: white;}
.contact-name{
  display:block;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  color: #335566;
}
.contact-meta{
  display:block;
  margin-top: 2px;
  font-size: 12px;
  color: black; 
  font-weight: 500;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* --- FOOTER PLUS BUTTON --- */
.footer-plus {
  width: 45px;
  height: 45px;
  border-radius: 20px;
  
  /* 1. MATCH THE HAMBURGER GRADIENT */
  background: linear-gradient(145deg, var(--neo1), var(--neo2));
  
  /* 2. MATCH THE SHADOW (The "Lift") */
  box-shadow: var(--shadow-raised);
  
  /* 3. BORDER logic */
  border: 1px solid rgba(255, 255, 255, 0.6);
  
  font-size: 11px;
  font-weight: 900;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Optional: Make it sit slightly higher than the bar so it floats */
  margin-bottom: 18px; 
 /*
    background: linear-gradient(
        120deg,
        #ebe8f5 0%,
        #eec3ff 30.34%,
        #ffdfcd 51.92%,
        #d1ffd1 75.48%,
        #7fcffb 100%
    );
    */
           /*
           opacity: 0.7;
            box-shadow: 0 -9px 8px 0 rgba(255, 255, 255, 0.42) inset;
              transform: rotate(-15deg) scaleX(0.8) scaleY(1.2);
           filter: blur(8px);
            */
  position: relative; 
  overflow: hidden;
}

/* Hover State */
.footer-plus:hover {
  color: var(--accent-color);
  transform: translateY(-2px); /* Physical lift */
  border-color: #fff;
  /* Add a subtle glow behind it on hover */
  box-shadow: 
    6px 6px 12px rgba(70, 90, 110, 0.2), 
    -6px -6px 12px rgba(255, 255, 255, 0.9),
    0 0 15px rgba(0, 180, 216, 0.15); /* Subtle Blue Glow */
}

/* Click State */
.footer-plus:active {
  transform: translateY(1px); /* Physical press */
  box-shadow: var(--shadow-inset); /* The "Pressed In" look */
  background: linear-gradient(145deg, var(--neo2), var(--neo1)); /* Invert light */
}
.footer-plus:after
{
    content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  
  /* The ORIGINAL gradient from your uploaded file */
  background: linear-gradient(
        90deg,
      #ebe8f5 0%,    
      #eec3ff 30%,   
      #ffdfcd 50%,   
      #d1ffd1 75%,   
      #7fcffb 100%  );

  filter: blur(8px);
  opacity: 0.7; /* Matches source opacity */
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
    
}

/* --- HEADER PEEK (3 avatars) --- */
.header-peek{
  display:flex;
  align-items:center;
  gap: 0;
  margin-right: 8px;
}
.peek{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(145deg, var(--neo1), var(--neo2));
  box-shadow: 4px 4px 10px rgba(70,90,110,0.2), -4px -4px 10px rgba(255,255,255,0.9);
  margin-left: -8px;
}
.peek:first-child{ margin-left: 0; }
.peek img{ width:100%; height:100%; object-fit:cover; display:block; }


/* --- HAMBURGER MENU & ITEMS --- */
.menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 80, 0.4);
  z-index: 9999;
  display: none;
  align-items: flex-start; /* Aligns menu to top */
  justify-content: center;
  padding-top: 20px; /* Push down from top of screen */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.menu-overlay.open { display: flex; }
/* --- 1. THE PANEL (The Glass Container) --- */
.menu-panel {
  width: min(340px, 85vw);
  border-radius: 28px; /* Softer, rounder corners */
  overflow: hidden;
  
  /* Richer Glass Effect */
  background: rgba(245, 248, 250, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  
  /* 3D Lighting: Top highlight + Soft Shadow */
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.25), /* Deep shadow for elevation */
    inset 0 1px 0 rgba(255, 255, 255, 0.9); /* Inner top light rim */

  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Spacing between the new 'pills' */
}

/* --- 2. THE ITEMS (Floating Glass Pills) --- */
/* --- 2. THE ITEMS (Deep 3D Glass) --- */
.menu-item {
  width: 100%;
  padding: 14px 20px;
  border-radius: 20px; /* Slightly rounder for the bubble look */
  
  /* 1. THE SURFACE: A diagonal sheen */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5) 0%,   /* Bright top-left */
    rgba(255, 255, 255, 0.1) 50%,  /* Clear middle */
    rgba(255, 255, 255, 0.05) 100% /* Darker bottom-right */
  );
  
  /* 2. THE 3D EDGES (The secret sauce) */
  box-shadow: 
    /* Sharp Top Highlight (The Light Catch) */
    inset 1px 1px 0 rgba(255, 255, 255, 0.8), 
    /* Soft Inner Glow */
    inset 0 0 20px rgba(255, 255, 255, 0.1),
    /* Bottom Reflection (The Rim) */
    inset -1px -1px 0 rgba(255, 255, 255, 0.3),
    /* Drop Shadow for Elevation */
    0 10px 20px rgba(0, 0, 0, 0.05);

  /* 3. BORDER: Very faint, letting the shadow do the work */
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Typography */
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  
  display: flex;
  align-items: center;
  gap: 12px;
  
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 3. HOVER STATE (High Gloss) --- */
.menu-item:hover {
  transform: translateY(-2px); /* Lift */
  
  /* Brighten the surface */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  
  /* Intensify the highlights */
  box-shadow: 
    inset 1px 1px 0 rgba(255, 255, 255, 1.0), /* Blindingly bright top edge */
    inset -1px -1px 0 rgba(255, 255, 255, 0.5),
    0 15px 30px rgba(0, 180, 216, 0.15); /* Colored glow from your accent color */
    
  color: var(--accent-color);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- 4. ACTIVE STATE (Pressed) --- */
.menu-item:active {
  transform: scale(0.98);
  /* Invert the gradient to simulate being pushed IN */
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.05) 0%, 
    rgba(255, 255, 255, 0.1) 100%
  );
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05); /* Inner shadow */
}

/* --- 5. LOGOUT BUTTON (Distinct separation) --- */
.menu-item.danger {
  margin-top: 8px; /* Push it away from the main links */
  background: rgba(255, 235, 235, 0.5); /* Faint red tint */
  color: #c53030;
  border-color: rgba(255, 200, 200, 0.4);
}

.menu-item.danger:hover {
  background: #fff5f5;
  color: #e53e3e;
  box-shadow: 0 6px 15px rgba(229, 62, 62, 0.15);
}

/* Icon styling inside menu items */
.menu-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

/* --- INTERACTION STATES --- */



.menu-item:hover i {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--glow-cyan);
}

.menu-item.danger i {
  color: #e53e3e;
}

.menu-item.danger:hover {
  background: rgba(255, 235, 235, 0.6);
  border-color: rgba(255, 200, 200, 0.8);
  color: #c53030;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.1);
}

/* Simple fade animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* =================================================================== */
/* --- LANDING / INDEX PAGE SPECIFIC --- */

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  min-height: 100%; /* Fill the scrollable area */
  text-align: center;
  gap: 32px;
  padding-bottom: 20px;
}

.landing-hero h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.2;
}

.landing-hero p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Round Video Container */
.video-circle-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  flex-shrink: 0;
}

.video-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  /* Double border effect using box-shadow and border */
  border: 4px solid rgba(255, 255, 255, 0.4); 
  box-shadow: 
    var(--shadow-raised),
    inset 0 0 20px rgba(0,0,0,0.1);
  background: #000; /* Fallback */
  position: relative;
  z-index: 1;
}

.circle-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Glass overlay on top of video for that 'lens' look */
.video-glass-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  box-shadow: inset 0 0 15px rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

.landing-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* =========================
   LOGIN (scoped, single system)
   ========================= */

.header-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1.05;
  gap:2px;
  flex:1;
  min-width:0;
}

.midium-brad{
  background: var(--surface-light); /* Faint dark background */
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
  letter-spacing: 0.5px;
  white-space: nowrap;
 backdrop-filter: blur(6px);      /* Blurs the photo behind the text */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
 position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  text-align: center;
  pointer-events: none;
}
.midium-brand {
  /* Positioning */
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  /* Typography: Dark Gray using your variable */
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;

  white-space: nowrap;
  opacity: 0.9;
  /* The Light Glass Pill */
  /* Using your triplet variable inside rgba for transparency without hardcoding hex */
  background: rgba(240, 244, 248, 0.6); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Shape & Border */
  padding: 5px 10px;
  border-radius: 15px;
  border: 1px solid var(--stroke); /* Uses your stroke variable */

  /* "Etched" effect: Light shadow on dark text makes it pop on glass */
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
  
  pointer-events: none;
}


/* midium.ai brand — spinner - animated only during loading */
.midiummm-brand{
  font-weight: 800;
  letter-spacing: 0.8px;

background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ff7f00 16%,
    #ffff00 32%,
    #00ff00 48%,
    #0000ff 64%,
    #4b0082 80%,
    #8f00ff 100%
  );

  /*background-size: 300% 300%;*/

  -webkit-background-clip: text;
  background-clip: text;

  /* Keep text visible even when gradient is light */
  text-shadow: 
    0 1px 2px rgba(0,0,0,0.25),
    0 0 12px rgba(255,255,255,0.35);

  animation: midiumGlow 8s ease-in-out infinite;
}

@keyframes midiumGlow{
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.login-content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  height:100%;
  padding:0 10px;
  gap:18px;
}

.login-hero{
  text-align:center;
  margin-bottom:8px;
}
.login-hero h2{
  margin:0 0 6px 0;
  font-size:28px;
  font-weight:800;
  color:var(--text-main);
}
.login-hero p{
  margin:0;
  color:var(--text-muted);
}

.login-input-group{ position:relative; }
/*
.login-input{
  width:100%;
  padding:18px 20px 18px 50px;
  border:none;
  outline:none;
  border-radius:20px;
  font-family:'Outfit', sans-serif;
  font-size:16px;
  color:var(--text-main);
  background:#e0e5ec;
  box-shadow:var(--shadow-inset);
  border:1px solid rgba(255,255,255,0.4);
  transition: all 0.2s ease;
}
.login-input:focus{
  box-shadow: inset 6px 6px 12px rgba(0,0,0,0.15), inset -6px -6px 12px rgba(255,255,255,0.9);
  border-color: var(--accent-color);
}
*/
.login-input-icon{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  color:var(--text-muted);
  font-size:18px;
}

.login-divider{
  display:flex;
  align-items:center;
  color:var(--text-muted);
  font-size:12px;
  margin:6px 0;
  font-weight: 800;
}
.login-divider::before,
.login-divider::after{
  content:"";
  flex:1;
  height:1px;
  background: rgba(0,0,0,0.10);
}
.login-divider span{ margin:0 10px; }

.elegant-small-text{
  text-align:right;
  font-size:13px;
  color:var(--text-muted);
  text-decoration:none;
  font-weight:600;
}
.login-forgot:hover{
  color:var(--accent-color);
  text-decoration:underline;
}

.login-status{
  min-height:18px;
  text-align:center;
  font-size:13px;
  color:var(--text-muted);
  white-space:pre-wrap;
}

.login-glass-btn{
  position:relative;
  width:100%;
  padding:16px;
  border-radius:20px;
  cursor:pointer;
  font-family:'Outfit', sans-serif;
  font-weight:800;
  letter-spacing:0.5px;
  color:var(--text-main);
  overflow:hidden;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-raised);
  transition: all 0.2s ease;
}

.enter-btn::after,
.login-glass-btn::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.55) 5%, 
    rgba(255,255,255,0.10) 30%, 
    rgba(255,255,255,0.00) 70%);
  border: 1px solid rgba(100,100,100,0.05);

  pointer-events:none;
}


.login-glass-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.26);
  border-color: rgba(255,255,255,0.70);
}

.login-glass-btn:active{
  transform: translateY(1px);
  box-shadow: var(--shadow-inset);
}

.login-google-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.login-overlay{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(224,229,236,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
}


/* Animated color shift during loading, no transparency, always readable */
.app-container.is-loading .midium-brand{
  font-weight: 800;
  letter-spacing: 0.8px;

  color: #3b4a5a;               /* readable base */
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);

  animation: midiumColorShift 3s ease-in-out infinite;
}

@keyframes midiumColorShift{
  0%   { color: #3b4a5a; }
  25%  { color: #2f7fa8; }
  50%  { color: #6b52a8; }
  75%  { color: #2f8a6a; }
  100% { color: #3b4a5a; }
}

.login-spinner{
  width:44px;
  height:44px;
  border-radius:50%;
  border: 3px solid rgba(0,0,0,0.10);
  border-top-color: rgba(0,0,0,0.35);
  animation: loginSpin 0.9s linear infinite;
}

@keyframes loginSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.login-btn-spinner{
  display:none;
  width:18px;
  height:18px;
  border-radius:50%;
  border: 2px solid rgba(0,0,0,0.12);
  border-top-color: rgba(0,0,0,0.38);
  animation: loginSpin 0.9s linear infinite;
}

.login-glass-btn.is-busy .login-btn-text{ opacity:0.85; }
.login-glass-btn.is-busy .login-btn-spinner{ display:inline-block; }

.login-disabled{
  opacity:0.7;
  pointer-events:none;
}
/* --- FOOTER SPECIFIC BUTTON --- */

.footer-glass-btn {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  
  /* Higher opacity background to stand out against the footer */

  background: linear-gradient(180deg, rgba(255,255,255,0.8) 20%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.2) 40%);
  /* 
    background: linear-gradient(
        120deg,
        #ebe8f5 0%,
        #eec3ff 30.34%,
        #ffdfcd 51.92%,
        #d1ffd1 75.48%,
        #7fcffb 100%
    );
   */
  /* Stronger border and shadow for "lift" */
  border: 1px solid rgba(200,200,200, 0.7);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  
  /* Text Styles */
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease; 
  
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-glass-btn::before{
  content: "";
  position: absolute;
 
  /* 
  background: radial-gradient(
    ellipse at top,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.35) 30%,
    rgba(255,255,255,0.12) 45%,
    rgba(255,255,255,0.0) 65%
  );
    */
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.45),
      rgba(255,255,255,0.05) 60%
    );

  pointer-events: none;
  border-radius: inherit;
}

.footer-glass-btn:active{
  transform: translateY(1px);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.footer-glass-btn::after {
content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  
  /* The ORIGINAL gradient from your uploaded file */
  background: linear-gradient(
      90deg,
      #ebe8f5 0%,    /* Soft White/Grey */
      #eec3ff 30.34%,/* Lavender */
      #ffdfcd 51.92%,/* Peach */
      #d1ffd1 75.48%,/* Mint */
      #7fcffb 100%   /* Sky Blue */
  );

  filter: blur(8px);
  opacity: 0.7; /* Matches source opacity */
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
}

.footer-glass-btn.scroll{
    @extend .footer-glass-btn;
    color: white;
    padding: 16px 16px 16px 16px;
}

/* --- Primary glass button (shared) --- */
.enter-btn{
  position:relative;
  width:100%;
  padding:16px;
  border-radius:20px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-raised);
  color: var(--text-main);
  font-weight:800;
  letter-spacing:0.6px;
  overflow:hidden;
  transition: all 0.2s ease;
}

.enter-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.26);
  border-color: rgba(255,255,255,0.70);
}
.enter-btn:active{
  transform: translateY(1px);
  box-shadow: var(--shadow-inset);
}

/* =========================
   PROFILE PAGE
   ========================= */

.profile-hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  padding: 16px 0 10px 0;
}

.profile-photo{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow:hidden;
  background: #cdd5d8;
  box-shadow: var(--shadow-inset);
  border: 2px solid rgba(255,255,255,0.75);
  
}

.profile-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.profile-section{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding-bottom: 10px;
}
/*
.profile-field{
  background: #e0e5ec;
  box-shadow: var(--shadow-inset);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 18px;
  padding: 12px 14px;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

.profile-field input,
.profile-field textarea{
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  color: inherit;
  font-size: 14px;
}

.profile-field textarea{
  min-height: 110px;
  resize: vertical;
  color:var(--text-dark);
}
*/

/* =========================================
   1. GLOBAL INPUT STYLING (The New Standard)
   ========================================= */
/* Applies to Login, Profile, Search - EVERYTHING */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 16px 20px;
  
  /* The Look (Powered by Variables) */
  background: var(--input-bg);
  box-shadow: var(--input-shadow);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  
  /* The Text */
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  outline: none;
  
  /* Animation */
  transition: all 0.2s ease;
}

/* Global Focus State (The Glow) */
input:focus,
textarea:focus {
  background: var(--input-focus-bg);
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
}

/* Textarea Specifics */
textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
  color: var(--var-dark);
    font-size: 12px;

}

/* --- 2. SPECIFIC STYLING FOR DROPDOWNS --- */
select {
  /* Remove default browser arrow (ugly gray box) */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  /* Add custom SVG arrow (matches your text color) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
  
  /* Make room for the arrow so text doesn't overlap it */
  padding-right: 45px;
  cursor: pointer;
}

/* Fix Focus State for Select */
select:focus {
  background-color: var(--input-focus-bg); /* Use the slightly lighter bg */
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
}

/* =========================================
   2. EXCEPTIONS (Layout Only, No Colors)
   ========================================= */

/* We keep the .login-input class ONLY to adjust padding 
   because of the icon. It inherits all colors from above.
*/

.login-input {
  padding-left: 30px !important; /* Make room for the user/lock icon */
  padding-right: 45px !important;
}


/* --- UNIVERSAL FORM STYLES (Profile, Settings, etc) --- */

.glass-input {
  width: 100%;
  padding: 16px 20px; /* Balanced padding (no icon indentation) */
  margin-bottom: 16px; /* Space between inputs */
  
  border: none;
  outline: none;
  border-radius: 20px;
  
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--text-main);
  
  /* Match the login look */
  background: #e0e5ec; 
  box-shadow: var(--shadow-inset);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

/* Focus State (Glow effect) */
.glass-input:focus {
  box-shadow: inset 6px 6px 12px rgba(0,0,0,0.15), inset -6px -6px 12px rgba(255,255,255,0.9);
  border-color: var(--accent-color);
  background: #eef2f6; /* Slightly lighter on focus */
}

/* Style for Textareas (like Bio) */
textarea.glass-input {
  resize: none;
  min-height: 100px;
  line-height: 1.5;
}

/* Optional: Label styling */
.input-label {
  display: block;
  margin: 0 0 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: white; /* var(--text-muted); */
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.input-label-type{
  color: var(--text-dark);
    
} 
/* =========================
   UI PRIMITIVES (reusable)
   ========================= */

.pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}

.pill{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow-raised);
  font-weight: 800;
  font-size: 12px;
  color: var(--text-main);
}

.card-selected{
  outline: 2px solid rgba(0,0,0,0.10);
  transform: scale(1.01);
}

.details-box{
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: var(--shadow-raised);
  overflow:hidden;
}

.details-box {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.35);
  margin-bottom: 18px;
  overflow: hidden;
}

.details-box summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  font-weight: 600;
  color: white;  /* var(--text-main); */
}

.details-box > summary {
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.45),
    rgba(255,255,255,0.25)
  );
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.details-box > summary:hover {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.45),
    rgba(255,255,255,0.22)
  );
}
.details-box {
  --glass-tint: 255, 255, 255;
  background: rgba(var(--glass-tint), 0.18);
}


.details-box summary::-webkit-details-marker{ display:none; }

.details-box .details-body{
  padding: 12px 14px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.45);
}

.search-field{
  margin-bottom: 12px;
}

.search-field input{
  width:100%;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.45);
  background: #e0e5ec;
  box-shadow: var(--shadow-inset);
  outline: none;
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--text-main);
  font-size: 14px;
}

.search-field input:focus{
  border-color: rgba(0,180,216,0.55);
}

/* =========================
   BOTTOM SHEET OVERLAY
   ========================= */

.sheet-overlay{
  position:absolute;
  inset:0;
  display:none;
  align-items:flex-end;
  justify-content:center;
  background: rgba(0,0,0,0.18);
  padding: 14px;
  z-index: 60;
}

.sheet-overlay.open{ display:flex; }

.sheet{
  width:100%;
  border-radius: 22px;
  overflow:hidden;
  background: rgba(245,248,250,0.92);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sheet-head{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
}

.sheet-avatar{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow:hidden;
  background: #cdd5d8;
  box-shadow: var(--shadow-inset);
  border: 1px solid rgba(255,255,255,0.6);
  flex: 0 0 auto;
}

.sheet-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.sheet-title{
  font-weight: 950;
  font-size: 15px;
  color: var(--text-dark);
}

.sheet-sub{
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sheet-body{
  padding: 12px 12px 14px 12px;
}

.sheet-desc{
  font-size: 13px;
  color: rgba(0,0,0,0.78);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.sheet-desc.full{
  display:block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.sheet-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 12px;
  align-items:center;
}

.sheet-status{
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.sheet-warn{
  display:none;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #b00020;
}

.skill-box{
  display:none;
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
}

.skill-box.open{ display:block; }

.skill{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  margin-top: 8px;
}

.skill-name{
  font-weight: 900;
  font-size: 13px;
  color: rgba(0,0,0,0.82);
}

.skill-desc{
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.close-x{
  margin-left:auto;
}

/* =========================
   MEET PAGE (migrated from meet.html inline <style>)
   Paste this at the VERY END of style.css
   ========================= */
/* =========================
   MEET PAGE, SINGLE SOURCE OF TRUTH
   ========================= */

/* --- 1. MAIN LAYOUT (Fixes the scrolling/overlapping issue) --- */

/* Forces the app to fit the screen exactly. No scrolling on the body. */
body.meet-page {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  flex-direction: column; /* Vertical stack: Header -> Content -> Composer */
  overflow: hidden;
}

/* --- 2. HEADER RESTORATION (Fixes the exploded avatar) --- */

.meet-top {
  flex: 0 0 190px; /* Strictly fixed height. Won't grow or shrink. */
  height: 190px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  /* Ensure children stack correctly */
  display: flex; 
  flex-direction: column;
}


/* This is the part that was missing! Restores the 100px size */
.meet-top-avatar {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
  /* The HTML centers it via inline flex, but this ensures the box size is locked */
  flex-shrink: 0; 
}

.meet-top-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Text styling under avatar */
.meet-top-text {
    /* Text Color */
      color: var(--text-light);
    font-size:14px; 
    text-decoration:none; 
    opacity:0.85;
    background: rgba( 74, 85, 104, 0.6); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
   /* Shape & Border */
  padding: 5px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke); /* Uses your stroke variable */
  text-shadow: 0 1px 2px rgba(30,30,30, 0.8); 

    position: relative;
    z-index: 1;

  /* Layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  /* THE FIX: Glass Badge Style */
  margin: 5px auto 0 auto;   /* Push down from avatar & center horizontally */
  width: fit-content;         /* CRITICAL: Shrinks the box to fit the text width */
  max-width: 85%;             /* Prevents it from hitting the screen edges */

 
}
/* Text styling under avatar 
.meet-top-text {
  position: relative;
  z-index: 1;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
   font-weight:500;

  font-size: 16px;
 text-shadow: 0 1px 0 rgba(255,255,255,0.5);

}
*/

/* Just a wrapper you have in HTML, let it pass through height */
.meet-header {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* The actual scrollable message list */
.meet-stream {
  flex: 1 1 auto;
  overflow-y: auto;   /* Scroll here */
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* --- 4. STREAM AREA (Fills all empty space) --- */
.meet-content {
  flex: 1; /* GROWS to push composer to the bottom */
  min-height: 0; /* Allows internal scrolling */
  display: flex;
  flex-direction: column;
  position: relative;
  background: #515c64;
}
/* ======================================
   MEET CONTENT DEPTH SHADOWS
   ====================================== */

.meet-content{
  position: relative;
  border-top: 3px solid rgba(255,255,255,0.5);
 
}

/* top shadow */
.meet-content::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:28px;
  pointer-events:none;
  z-index:5;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18),
    rgba(0,0,0,0.08),
    rgba(0,0,0,0.00)
  );
}

/* bottom shadow */
.meet-content::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:32px;
  pointer-events:none;
  z-index:5;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.20),
    rgba(0,0,0,0.10),
    rgba(0,0,0,0.00)
  );
}
.meet-stream {
  flex: 1;
  overflow-y: auto; /* Scroll messages here */
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

/* --- 5. COMPOSER (Fixed to bottom, Better Input Layout) --- */
.composer {
  flex: 0 0 auto; /* Don't grow, just fit content */
  width: 100%;
  background: var(--headerfooter);
  border-top: 3px solid rgba(255,255,255,0.5);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  z-index: 100;
}
/* Fixes the "stretches all the way" issue */
.composer .row {
  display: flex;
  align-items: flex-end;/*  Align bottom so textarea grows up */
  gap: 10px;
  width: 100%;

}

.composer .row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2px; /* tweak 0..8px to taste */}
}

#sendBtn {
  margin-top: 2px;
}
.composer textarea {
  flex: 1; /* Takes available space */
  max-height: 110px;
  padding: 12px 14px;
  border-radius: 20px;
  resize: none;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid #eee;
  background: #f8f8f8;
  color: var(--text-dark);
 }
 

.composer button#sendBtn {
  flex: 0 0 auto; /* Don't shrink or grow */
  width: 44px;    /* Circular button size */
  height: 44px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Keep your existing gradient/color styles for the button here */
}

.composer-grid{
  display:grid;
  grid-template-columns: 85% 15%;
  align-items:end;
  gap:10px;
}

.composer-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding-bottom: 2px;
}

.save-chat-btn{
  background:none;
  border:none;
  color: rgba(0,0,0,0.4);
  cursor:pointer;
  padding:4px;
}

/* Bubbles */
.bubble{
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.55);
  word-break: break-word;
  white-space: pre-wrap;
  color:var(--text-dark);
  font-weight:500;
  z-index: 1000;
  font-size:12px;
}

.bubble.me{
  align-self:flex-end;
  background: rgba(240,240,240,0.85);
  box-shadow: 0 0 30px rgba(255,80,255,0.85);
  
}

.bubble.them{
  align-self:flex-start;
  background: rgba(240,240,240,0.85);
  box-shadow: 0 0 30px rgba(80,255,255,0.85);
}

.bubble.system{
 max-width: 98%;

  align-self:center;
  background: rgba(240,240,240,0.85);
  box-shadow: 0 0 30px rgba(100,100,100,0.5);
}

.bubble small{
  display:block;
  opacity:0.6;
  font-size:11px;
  margin-bottom:4px;
}


/* --- GLOBAL SPINNER (The Midium Pulse) --- */
#midiumSpinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.3); /* Slightly darker for contrast */
  backdrop-filter: blur(8px);      /* Stronger blur to focus on the logo */
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#midiumSpinner.active {
  opacity: 1;
  pointer-events: auto;
}

/* THE LOGO (Animated Gradient Text) */
.spinner-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.5px;
  
  /* The Magic: Gradient Text */
  background: linear-gradient(
    135deg, 
    #00b4d8 0%,   /* Cyan */
    #90e0ef 25%,  /* Light Blue */
    #a06cd5 50%,  /* Purple */
    #00b4d8 75%,  /* Back to Cyan */
    #90e0ef 100%
  );
  background-size: 300% 300%; /* Make gradient big enough to move */
  
  /* Clip background to text shape */
  -webkit-background-clip: text;
  background-clip: text;
  
  /* Make text transparent so background shows through */
  color: transparent; 
  
  /* Two animations: Breathing (Scale) + Flowing (Color) */
  animation: 
    midiumBreathe 2s infinite ease-in-out,
    midiumFlow 3s infinite linear;
}

/* 1. Scale/Glow Pulse */
@keyframes midiumBreathe {
  0%, 100% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 0 rgba(0, 180, 216, 0));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.4)); /* Glow matches blue */
  }
}

/* 2. Color Shifting */
@keyframes midiumFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

#dob, #dod, #modalDod {
  /* 1. Size & Spacing (Matches your text inputs) */
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  box-sizing: border-box; /* Ensures padding doesn't break width */

  /* 2. The "Glass" Look */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* 3. Typography (Crucial for matching the page) */
  font-family: 'Outfit', sans-serif; /* Forces your custom font */
  font-size: 16px;
  color: #ffffff; /* Forces the text/placeholder to be white */

  /* 4. Reset Browser Defaults */
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark; /* Tells browser to use dark-mode scrollbars/calendars */
}

/* Fix the calendar icon color (Make it white/transparent white) */
#dob::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}/* Fix the calendar icon color (Make it white/transparent white) */
#dod::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}

.header-title-wrap{
      display:flex;
      flex-direction:column;
      align-items:center;
      line-height:1.05;
      gap:2px;
      min-width: 0;
      flex: 1;
}

.fas {
  color: rgba(120,150,200,0.3);
}
     
.forgot-wrap {
  display: flex;
  justify-content: flex-end;
}    

/*   ------ audio messages */ 
.msg.voice{
  display:flex;
  align-items:center;
  gap:10px;
  height:auto !important;
  min-height:0 !important;
  border-radius:18px;
  width: fit-content;
  max-width: 85%;
}

.voice-play{
  width:32px;
  height:32px;
  border-radius:999px;
  border:0;
  background: rgba(255,255,255,0.18);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

.voice-wave{
  height:18px;
  width: 160px;
  border-radius:999px;
  background: rgba(255,255,255,0.18);
  position: relative;
  overflow:hidden;
  flex: 0 0 auto; /* critical, do not stretch */
}

.voice-progress{
  position:absolute;
  inset:0;
  width:0%;
  background: rgba(255,255,255,0.45);
}

.voice-dur{
  font-size:12px;
  opacity:0.85;
  white-space: nowrap;
  flex: 0 0 auto;
}

/*  catalogue columns */
.catalog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.catalog-card {

  border-radius: 15px;
  padding: 10px;
  gap: 10px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform .15s ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
}

.catalog-title {
  font-weight: 500;
}

.catalog-sub {
  font-size: 10px;
  opacity: 0.7;
}


/*  login page */

  .modalOverlay{
    position:fixed; inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    padding: 18px;
  }
  .modalCard{
    width: min(420px, 92vw);
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px;
  }
  .modalTitle{
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
  }
  .modalText{
    font-size: 13px;
    opacity: 0.9;
    margin: 0 0 12px;
    color: #fff;
  }
  .modalActions{
    display:flex;
    gap: 10px;
    margin-top: 12px;
  }
  .modalActions .footer-glass-btn{
    width: 100%;
    margin: 0;
  }
  .modalStatus{
    min-height: 1.2em;
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    opacity: 0.9;
    color: #fff;
  }
  
  /* new member */
      .header-title-wrap{
      display:flex;
      flex-direction:column;
      align-items:center;
      line-height:1.05;
      gap:2px;
      min-width:0;
      flex:1;
    }
    .form-help{
      font-size:12px;
      opacity:.7;
      margin:0 0 12px 12px;
      line-height:1.35;
    }
    .two-col{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px;
    }
    .three-col{
      display:grid;
      grid-template-columns:1fr 1fr 1fr;
      gap:12px;
    }
    @media (max-width:420px){
      .two-col, .three-col{ grid-template-columns:1fr; }
    }
    .status-line{
      padding:0 18px;
      margin-top:10px;
      font-size:12px;
      opacity:.75;
    }
    .footer-row{
      width:100%;
      display:flex;
      gap:10px;
      align-items:center;
      justify-content:space-between;
    }
    .footer-secondary{
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:18px;
      font-weight:900;
      width:44px;
      height:44px;
    }
    .footer-row .enter-btn{ width:100%; }

    /* Status selector */
    .alive-wrap{
      color: white;
      margin:8px 0 10px 0;
      padding:10px 12px;
      border-radius:14px;
      border:1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.04);
    }
    .alive-title{
      font-weight:800;
      margin-bottom:8px;
      font-size:13px;
      opacity:.92;
    }
    .alive-options{
      display:flex;
      gap:12px;
      flex-wrap:wrap;
    }
    .alive-pill{
      display:flex;
      align-items:center;
      gap:8px;
      padding:10px 12px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.03);
      cursor:pointer;
      user-select:none;
    }
    .alive-pill input{ accent-color: #ffffff; }
    .alive-pill span{ font-size:13px; font-weight:700; opacity:.95; }

    /* Modal */
    .modal-overlay{
      position:fixed;
      inset:0;
      display:none;
      align-items:center;
      justify-content:center;
      padding:18px;
      background: rgba(0,0,0,.6);
      z-index:9999;
      color: white;
    }
    .modal{
      width:min(520px, 100%);
      border-radius:18px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(20,20,20,.92);
      box-shadow: 0 18px 60px rgba(0,0,0,.55);
      overflow:hidden;
    }
    .modal-head{
      padding:16px 16px 10px 16px;
      border-bottom:1px solid rgba(255,255,255,.10);
    }
    .modal-title{
      font-weight:900;
      font-size:14px;
      margin:0;
    }
    .modal-body{
      padding:14px 16px 16px 16px;
      line-height:1.45;
      font-size:13px;
      opacity:.95;
    }
    .modal-body p{ margin:0 0 10px 0; opacity:.92; }
    .modal-grid{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px;
      margin-top:10px;
    }
    @media (max-width:480px){
      .modal-grid{ grid-template-columns:1fr; }
    }
    .modal-actions{
      padding:12px 16px 16px 16px;
      display:flex;
      gap:10px;
      justify-content:flex-end;
    }
    .btn-ghost{
      border:1px solid rgba(255,255,255,.16);
      background: rgba(255,255,255,.04);
      color:#fff;
      border-radius:999px;
      padding:10px 12px;
      font-weight:800;
      cursor:pointer;
    }
    .btn-primary{
      border:1px solid rgba(255,255,255,.18);
      background: rgba(255,255,255,.14);
      color:#fff;
      border-radius:999px;
      padding:10px 12px;
      font-weight:900;
      cursor:pointer;
    }
    .modal-warn{
      padding:10px 12px;
      border-radius:14px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
      margin-top:10px;
      font-size:12px;
      opacity:.95;
    }
    .hidden-field{
      display:none !important;
    }
    
/*  ------------  */
/* midium.ai header, keep base layout, animate colors only while loading */
.midium-brand{
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

/* Per-letter wrapper, safe even if you later remove spans */
.midium-brand span{
  display: inline-block;
}

/* Loading animation: rainbow gradient flow, per letter */
.app-container.is-loading .midium-brand span{
 background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ff7f00 16%,
    #ffff00 32%,
    #00ff00 48%,
    #0000ff 64%,
    #4b0082 80%,
    #8f00ff 100%
  );

  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* readable on glass without “blinking” */
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);

  animation: midiumHeaderFlow 1.6s linear infinite;
}

/* Stagger, keep it subtle */
.app-container.is-loading .midium-brand span:nth-child(1){ animation-delay: 0s; }
.app-container.is-loading .midium-brand span:nth-child(2){ animation-delay: 0.06s; }
.app-container.is-loading .midium-brand span:nth-child(3){ animation-delay: 0.12s; }
.app-container.is-loading .midium-brand span:nth-child(4){ animation-delay: 0.18s; }
.app-container.is-loading .midium-brand span:nth-child(5){ animation-delay: 0.24s; }
.app-container.is-loading .midium-brand span:nth-child(6){ animation-delay: 0.30s; }
.app-container.is-loading .midium-brand span:nth-child(7){ animation-delay: 0.36s; }
.app-container.is-loading .midium-brand span:nth-child(8){ animation-delay: 0.42s; }
.app-container.is-loading .midium-brand span:nth-child(9){ animation-delay: 0.48s; }

@keyframes midiumHeaderFlow{
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}


/*  password toggle  */

/* style.css */

.login-password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  
  /* Overrides the faint .fas rule and uses your dark text variable for contrast */
  color: var(--text-dark); 
  opacity: 0.6;
  z-index: 10;
  font-size: 16px;
  transition: all 0.2s ease;
}

.login-password-toggle:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Ensures the text you type doesn't slide underneath the eye icon */
#password {
  padding-right: 45px;
}
.login-input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  z-index: 5;
}

/* meet : Typing Animation */
  .typing-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 10px; /* Force low height */
    padding: 4px 0; /* Minimal padding */
  }

  .typing-indicator span {
    display: block;
    width: 5px;
    height: 5px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    margin-right: 4px;
    animation: typing 1.4s infinite ease-in-out both;
  }
  
  .typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
  .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

  @keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
  }

  /* Specific override to make the typing bubble shorter than normal text bubbles */
  .bubble.typing {
    padding: 12px 16px; /* Adjust to match your theme's bubble roundness */
    min-height: auto;
    width: fit-content;
  }