* {
    box-sizing: border-box;
  }
  
  :root {
    --bg: #06070b;
    --bg-soft: #0c0d14;
    --card: #0d0f17;
    --card-2: #1a1a1e;
    --accent: #0088ff; /* Vibrant Ukrainian Blue */
    --accent-hover: #33aaff;
    --text: #ffffff;
    --muted: #8b8e99;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-accent: 0 0 28px rgba(0, 136, 255, 0.18);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-pill: 999px;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  html {
    background-color: #05060a;
  }
  
  body {
    margin: 0;
    background:
      radial-gradient(circle at top left, rgba(0, 136, 255, 0.08), transparent 28%),
      radial-gradient(circle at top right, rgba(0, 136, 255, 0.06), transparent 24%),
      linear-gradient(180deg, #05060a 0%, #070910 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
  }
  
  button,
  input,
  textarea {
    font: inherit;
  }
  
  button {
    cursor: pointer;
  }
  
  .app-shell {
    min-height: 100vh;
  }
  
  .topbar {
    position: sticky;
    top: 0;
    z-index: 95;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 18px 20px;
    background: rgba(6, 7, 11, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .brand-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #c99a3d, #e4bc59);
    color: #111;
    font-weight: 800;
    font-size: 28px;
    box-shadow: var(--shadow-accent);
  }
  
  .brand-text {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--accent);
  }
  
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .icon-button,
  .profile-button,
  .square-icon-button,
  .segment,
  .floating-circle,
  .comment-float-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .icon-button {
    background: transparent;
    color: var(--accent);
    border-radius: 18px;
    width: 50px;
    height: 50px;
  }
  
  .notification-button {
    position: relative;
  }
  
  .badge-count {
    position: absolute;
    top: -4px;
    right: -1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    font-size: 14px;
    font-weight: 800;
    display: grid;
    place-items: center;
  }
  
  .profile-button {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 136, 255, 0.12), rgba(0, 136, 255, 0.04));
    color: var(--accent);
    font-weight: 800;
    font-size: 28px;
    box-shadow: var(--shadow-accent);
  }
  
  /* Hamburger Animation */
  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 100; /* keep above overlay */
  }
  
  .menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    transform-origin: center;
  }

  /* When menu is open, turn into X */
  body.menu-open .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.menu-open .menu-button span:nth-child(2) {
    opacity: 0;
  }
  body.menu-open .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── MOBILE MENU OVERLAY ───────────────────────────── */
  .mobile-menu-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 96px; /* Offset for full header visibility */
    background: rgba(8, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  body.menu-open .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-panel {
    background: #111;
    padding: 24px 16px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.5);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  }

  body.menu-open .mobile-menu-panel {
    transform: translateY(0);
    opacity: 1;
  }

  /* Menu Search */
  .menu-search-container {
    display: flex;
    align-items: center;
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 24px;
  }

  .menu-search-container .search-icon {
    color: var(--muted);
    font-size: 16px;
    margin-right: 10px;
  }

  .menu-search-input {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 16px;
    width: 100%;
    outline: none;
    font-family: inherit;
  }

  .menu-search-input::placeholder {
    color: var(--muted);
  }

  /* Menu Grid */
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  @media (max-width: 400px) {
    .menu-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .menu-grid-card {
    background: #1a1a1e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }

  .menu-grid-card:hover {
    background: #222226;
    border-color: rgba(255,255,255,0.1);
  }

  .menu-icon {
    font-size: 16px;
    opacity: 0.9;
  }
  
  .page-content {
    padding: 20px 16px 60px;
    max-width: 860px;
    margin: 0 auto;
  }
  
  .glow-card {
    position: relative;
    overflow: hidden;
  }
  
  .glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at top left, rgba(0, 136, 255, 0.12), transparent 36%),
      radial-gradient(circle at bottom right, rgba(0, 136, 255, 0.10), transparent 32%);
    pointer-events: none;
  }
  
  .hero-card,
  .premium-panel,
  .auth-card,
  .content-card,
  .stat-card,
  .comment-box {
    background: linear-gradient(180deg, rgba(15, 17, 25, 0.98), rgba(8, 9, 14, 0.98));
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }
  
  .hero-card {
    border-radius: 34px;
    padding: 28px;
    margin-top: 18px;
  }
  
  .eyebrow {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin: 0 0 12px;
  }
  
  .hero-copy h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -1.4px;
  }
  
  .accent-text {
    color: var(--accent);
  }
  
  .hero-subtext,
  .panel-subtext,
  .auth-subtitle,
  .content-info p,
  .stat-label,
  .auth-brand-subtitle,
  textarea,
  input {
    color: var(--muted);
  }
  
  .hero-subtext {
    font-size: 18px;
    line-height: 1.5;
    margin: 18px 0 0;
    max-width: 540px;
  }
  
  .hero-actions {
    margin-top: 28px;
  }
  
  .primary-button,
  .secondary-button,
  .submit-button,
  .auth-tab {
    border: none;
    border-radius: var(--radius-pill);
    padding: 16px 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  
  .primary-button,
  .submit-button,
  .auth-tab.active {
    background: linear-gradient(135deg, #0057B7, #33aaff);
    color: #111;
    box-shadow: 0 0 24px rgba(0, 136, 255, 0.22);
  }
  
  .primary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
  }
  
  .secondary-button {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .button-icon {
    font-size: 18px;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
  }
  
  .stat-card {
    border-radius: 28px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 136px;
  }
  
  .stat-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(0, 136, 255, 0.10);
    color: var(--accent);
    font-size: 30px;
  }
  
  .stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
  }
  
  .stat-label {
    font-size: 16px;
    margin-top: 6px;
  }
  
  .section-heading {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  
  .section-heading h2,
  .comment-section h2,
  .premium-panel h2,
  .auth-card h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.8px;
  }
  
  .segment-control {
    display: flex;
    gap: 10px;
    padding: 7px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .segment {
    width: 58px;
    height: 54px;
    border-radius: 18px;
    background: transparent;
    color: #cfd2dc;
    font-size: 22px;
  }
  
  .segment.active {
    background: linear-gradient(135deg, #0057B7, #0088ff);
    color: #111;
    box-shadow: 0 0 18px rgba(0, 136, 255, 0.18);
  }
  
  .accent-line,
  .mini-accent-line {
    background: linear-gradient(90deg, var(--accent), rgba(0, 136, 255, 0.05));
    border-radius: var(--radius-pill);
  }
  
  .accent-line {
    width: 230px;
    height: 7px;
    margin: 18px 0 26px;
  }
  
  .content-list {
    display: grid;
    grid-template-columns: 1fr; /* Mobile default */
    gap: 18px;
    margin-bottom: 30px;
  }
  
  /* Tablet */
  @media (min-width: 600px) {
    .content-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Desktop */
  @media (min-width: 900px) {
    .content-list {
      grid-template-columns: repeat(4, 1fr);
      gap: 22px;
    }
  }

  /* Video Thumbnail Area */
  .content-image {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--card-2);
  }

  /* Bottom right duration badge */
  .duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    z-index: 2;
  }

  .content-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #0057B7, #0088ff);
    color: #111;
    font-weight: 800;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 14px;
  }

  /* Card Info Area */
  .content-info {
    padding: 16px;
  }

  .content-info h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .content-meta-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
  }

  .content-category-tag {
    display: inline-block;
    margin-top: 12px;
    background: rgba(0, 136, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 136, 255, 0.2);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
  }

  /* ── Pagination ──────────────────────────────────────── */
  .pagination-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 50px;
  }

  .pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, opacity 0.15s;
  }

  .pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
  }

  .pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .pagination-info {
    font-size: 16px;
    color: var(--muted);
  }

  /* ── Footer ─────────────────────────────────────────── */
  .app-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 16px 40px;
    text-align: center;
  }

  .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
  }

  .footer-link {
    color: var(--muted);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.15s;
  }

  .footer-link:hover {
    color: var(--text);
  }

  .footer-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 14px;
  }

  .footer-copyright {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    opacity: 0.6;
  }

  
  .premium-panel {
    border-radius: 32px;
    margin: 0;
    padding: 26px 20px 22px;
    text-align: center;
  }
  
  .panel-crown {
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .panel-subtext {
    font-size: 17px;
    line-height: 1.5;
    margin: 12px auto 0;
    max-width: 460px;
  }
  
  .feature-pill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
  }
  
  .feature-pill {
    border-radius: 20px;
    padding: 16px 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 136, 255, 0.14);
    color: var(--text);
    font-weight: 700;
  }
  
  .panel-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  
  .comment-section {
    margin-top: 34px;
  }
  
  .comment-box {
    position: relative;
    border-radius: 30px;
    padding: 24px;
    margin-top: 16px;
    min-height: 190px;
  }
  
  .comment-box textarea {
    width: 100%;
    min-height: 120px;
    background: transparent;
    border: none;
    outline: none;
    resize: vertical;
    font-size: 24px;
    padding-right: 110px;
  }
  
  .comment-float-button {
    border: none;
  }
  
  /* ── PREMIUM MODAL OVERLAY ───────────────────────── */
  .premium-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .premium-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .premium-modal-overlay .premium-panel {
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .premium-modal-overlay.show .premium-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  .close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .close-modal-btn:hover {
    background: rgba(255,255,255,0.1);
  }

  /* ── Login screen overlay ─────────────────────────── */
  .login-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    background:
      radial-gradient(circle at top left, rgba(0, 136, 255, 0.08), transparent 28%),
      radial-gradient(circle at top right, rgba(0, 136, 255, 0.06), transparent 24%),
      linear-gradient(180deg, #05060a 0%, #070910 100%);
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: opacity 0.4s ease;
  }

  .login-screen.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  .login-inner {
    width: 100%;
    max-width: 600px;
    padding: 40px 16px 60px;
  }

  .hidden {
    display: none !important;
  }

  .auth-section {
    margin-top: 50px;
  }
  
  .auth-brand {
    text-align: center;
    margin-bottom: 22px;
  }
  
  .auth-brand-wrap {
    justify-content: center;
  }
  
  .mini-accent-line {
    width: 110px;
    height: 5px;
    margin: 18px auto 16px;
  }
  
  .auth-brand-subtitle {
    margin: 0;
    font-size: 18px;
  }
  

  .auth-card {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    margin-bottom: 30px;
  }
  
  .auth-card.mini-card {
    padding: 20px 24px;
    margin-top: -14px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .auth-card.mini-card p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
  }
  
  .auth-card.mini-card button {
    margin: 0;
    padding: 10px 20px;
    width: auto;
    font-size: 14px;
  }
  
  .auth-card.hidden {
    display: none;
  }
  
  .auth-card h2 {
    text-align: center;
    font-size: 50px;
    margin-bottom: 10px;
  }
  
  .auth-subtitle {
    text-align: center;
    font-size: 17px;
    margin: 0 0 28px;
  }
  
  .field-label {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 18px;
  }
  
  .input-wrap,
  .verification-code {
    min-height: 82px;
    border-radius: 26px;
    background: var(--card-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }
  
  .input-wrap {
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
  }
  
  .input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 21px;
  }
  
  .input-icon {
    font-size: 22px;
    opacity: 0.7;
    color: var(--muted);
    flex-shrink: 0;
  }
  
  /* password row: never collapse — eye stays on same line */
  .input-row,
  .verification-row {
    display: grid;
    grid-template-columns: 1fr 82px;
    gap: 12px;
    align-items: center;
  }
  
  /* gray icon buttons (eye, refresh) */
  .icon-btn {
    color: var(--muted);
    font-size: 24px;
  }
  


  
  .square-icon-button {
    min-height: 82px;
    border-radius: 26px;
    background: var(--card-2);
    color: #d5d7df;
    font-size: 30px;
  }
  
  .verification-row {
    margin-bottom: 14px;
  }
  
  .verification-code {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 42px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 10px;
  }
  
  .submit-button {
    width: 100%;
    margin-top: 22px;
    min-height: 82px;
    font-size: 26px;
  }
  
  @media (max-width: 640px) {
    .brand-text {
      font-size: 28px;
    }
  
    .topbar {
      padding-left: 14px;
      padding-right: 14px;
    }
  
    .page-content {
      padding-left: 14px;
      padding-right: 14px;
    }
  
    .hero-copy h1 {
      font-size: 34px;
    }
  
    .section-heading {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .feature-pill-grid,
    .panel-actions,
    .stats-grid {
      grid-template-columns: 1fr;
    }

  
    .comment-box textarea {
      padding-right: 0;
      padding-bottom: 110px;
      font-size: 20px;
    }
  
    .comment-float-button {
      right: 20px;
      bottom: 20px;
    }
  
    .auth-card h2 {
      font-size: 38px;
    }
  }
  
  @media (min-width: 900px) {
    .page-content {
      padding-top: 30px;
    }
  
    .hero-card,
    .premium-panel,
    .auth-card {
      padding-left: 34px;
      padding-right: 34px;
    }
  }

  /* ── Clickable browse cards ─────────────────────────── */
  .content-card[data-video-id] {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .content-card[data-video-id]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(215, 171, 74, 0.15);
  }

  .content-card[data-video-id]:active {
    transform: scale(0.98);
  }

  /* ── Video detail screen ────────────────────────────── */
  .vd-screen {
    margin-top: 0;
  }

  .vd-screen.hidden {
    display: none;
  }

  .vd-back-row {
    display: flex;
    align-items: center;
    padding: 6px 0 18px;
  }

  .vd-back-btn {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
    transition: opacity 0.15s;
  }

  .vd-back-btn:hover {
    opacity: 1;
  }

  .vd-premium-card {
    border-radius: 28px;
    padding: 24px 20px 20px;
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 17, 25, 0.98), rgba(8, 9, 14, 0.98));
    border: 1px solid var(--border);
  }

  .vd-premium-card h2 {
    margin: 6px 0 6px;
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .vd-premium-card .panel-subtext {
    font-size: 15px;
    margin: 0 auto 16px;
  }

  .vd-premium-cta {
    font-size: 16px;
    padding: 14px 16px;
  }

  .vd-go-back {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  /* Video info card */
  .vd-info-card {
    background: linear-gradient(180deg, rgba(15, 17, 25, 0.98), rgba(8, 9, 14, 0.98));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 20px 18px 18px;
    margin-bottom: 24px;
  }

  .vd-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .vd-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    flex: 1;
    color: var(--text);
  }

  .vd-badge {
    background: linear-gradient(135deg, #c99b3f, #e2b854);
    color: #111;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    flex-shrink: 0;
    align-self: start;
    margin-top: 2px;
  }

  .vd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-bottom: 16px;
  }

  .vd-meta-item {
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .vd-category {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
  }

  /* Creator row */
  .vd-creator-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
  }

  .vd-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c99a3d, #e4bc59);
    color: #111;
    font-weight: 800;
    font-size: 22px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
  }

  .vd-creator-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .vd-creator-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
  }

  .vd-subs {
    font-size: 13px;
    color: var(--muted);
  }

  /* Action buttons */
  .vd-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .vd-subscribe-btn {
    background: linear-gradient(135deg, #c99b3f, #e5be5b);
    color: #111;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 22px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.3px;
    box-shadow: 0 0 18px rgba(215, 171, 74, 0.22);
    flex-shrink: 0;
    transition: transform 0.15s;
  }

  .vd-subscribe-btn:hover {
    transform: scale(1.04);
  }

  .vd-action-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    color: var(--text);
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
  }

  .vd-action-pill:hover {
    background: rgba(255, 255, 255, 0.10);
  }

  .vd-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 20px;
    display: grid;
    place-items: center;
    margin-left: auto;
    transition: background 0.15s;
  }

  .vd-action-icon:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  /* Comments within detail */
  .vd-comments h2 {
    font-size: 22px;
    margin: 0 0 14px;
    letter-spacing: -0.4px;
  }

/* ── VIDEOS DIRECTORY PAGE ────────────────────────────── */
.videos-header-area h2 {
  font-size: 32px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}
.view-icon {
  color: var(--accent);
  font-size: 28px;
}
.view-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.search-sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.search-input-wrap {
  flex-grow: 1;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 52px;
  transition: border-color 0.2s;
}
.search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 136, 255, 0.2);
}
.search-icon {
  color: var(--muted);
  font-size: 18px;
  margin-right: 12px;
}
.search-input-wrap input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}
.sort-segmented-control {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 4px;
  flex-shrink: 0;
}
.sort-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.sort-btn.active {
  background: var(--accent);
  color: #111;
  box-shadow: var(--shadow-accent);
}

.keyword-scroll-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.filter-icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.keyword-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px; /* For scrollbar */
  scrollbar-width: none; /* Firefox */
}
.keyword-pills::-webkit-scrollbar {
  display: none;
}
.pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.pill.active {
  background: rgba(0, 136, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.pill:not(.active):hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── FREE PREVIEWS VIEW ──────────────────────────────────── */
.free-video-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}
.free-video-card {
  background: var(--card-1);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.free-video-card:active {
  transform: scale(0.98);
}
.free-video-card:hover {
  border-color: rgba(0, 136, 255, 0.3);
}
.free-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #151518;
  display: flex;
  align-items: center;
  justify-content: center;
}
.free-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 136, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 136, 255, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.thumb-placeholder-logo {
  font-size: 60px;
  font-weight: 900;
  color: rgba(0, 136, 255, 0.15);
}
.free-card-info {
  padding: 20px;
}
.free-card-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--text);
}
.free-card-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── CHAT VIEW ───────────────────────────────────────────── */
.chat-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 96px); /* subtract topbar height */
  overflow: hidden;
}

.chat-room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}
.room-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-icon {
  font-size: 20px;
}
.room-status {
  font-size: 13px;
  color: #10B981; /* Emerald green */
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.chat-msg {
  display: flex;
  gap: 16px;
}
.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}
.chat-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.chat-text {
  font-size: 15px;
  color: #ddd;
  line-height: 1.5;
}

.chat-input-bar {
  padding: 16px 20px;
  background: rgba(8, 10, 18, 0.95);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Save space for iPhone home indicator */
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.chat-input-field {
  flex-grow: 1;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 20px;
  height: 48px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-field:focus {
  border-color: var(--accent);
}
.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.chat-send-btn:hover {
  background: var(--accent);
  color: #111;
}
.premium-badge {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 136, 255, 0.1);
}

/* ── PREMIUM / PACKAGES VIEW ────────────────────────────── */
.premium-header-area {
  text-align: center;
  margin-bottom: 32px;
}
.premium-welcome {
  font-size: 32px;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.premium-subtitle {
  color: #aaa;
  font-size: 15px;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.4;
}

.premium-toggle-group {
  display: flex;
  gap: 12px;
  background: var(--card-1);
  padding: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 40px;
}
.p-toggle-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  color: #888;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.p-toggle-btn.active {
  background: var(--card-2);
  border-color: rgba(0, 136, 255, 0.4);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.15);
}
.p-toggle-btn:not(.active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.premium-card {
  background: var(--card-1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
}
.p-card-header {
  padding: 32px 24px;
  text-align: center;
}
.p-card-header h3 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 8px;
}
.p-card-header p {
  color: #888;
  font-size: 14px;
  margin: 0 0 24px;
}
.p-card-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 136, 255, 0.3);
}

.p-card-banner {
  background: rgba(0, 136, 255, 0.05);
  border-top: 1px solid rgba(0, 136, 255, 0.1);
  border-bottom: 1px solid rgba(0, 136, 255, 0.1);
  text-align: center;
  padding: 16px;
  font-weight: 800;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.p-card-body {
  padding: 32px 24px;
}
.p-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.p-card-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccc;
  font-size: 15px;
}
.p-card-features svg {
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(0,136,255,0.4));
}

.p-card-buy-btn {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: var(--card-2);
  border: 1px solid rgba(0, 136, 255, 0.3);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.p-card-buy-btn svg {
  color: var(--accent);
}
.p-card-buy-btn:hover {
  background: rgba(0, 136, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px rgba(0, 136, 255, 0.2);
}

/* ── PROFILE DROPDOWN MENU ─────────────────────────────── */
.profile-menu-wrap {
  position: relative;
}
.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 14px;
  width: 250px;
  background: rgba(6, 8, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 136, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 136, 255, 0.05);
  border-radius: 20px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}
.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.p-drop-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: #f1f1f1;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.p-drop-item svg {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.p-drop-item:hover {
  background: rgba(0, 136, 255, 0.1);
  color: #fff;
}
.p-drop-item:hover svg {
  color: var(--accent);
}
.p-drop-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}
.p-drop-lang {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lang-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
}
.lang-pills {
  display: flex;
  gap: 8px;
}
.lang-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #aaa;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-pill.active {
  background: rgba(0, 136, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.2);
}
.lang-pill:not(.active):hover {
  background: rgba(255, 255, 255, 0.1);
}
.logout-item {
  color: #ef4444;
}
.logout-item svg {
  color: #ef4444;
}
.logout-item:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ── SUPPORT FLOATING MENU ─────────────────────────────── */
.support-fab-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.support-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card-1);
  border: 1px solid rgba(0, 136, 255, 0.3);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 136, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.support-fab:hover {
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 136, 255, 0.3);
}
.support-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  margin-right: 4px;
  align-items: flex-end;
  pointer-events: none;
}
.support-menu-item {
  display: flex;
  align-items: center;
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 136, 255, 0.2);
  border-radius: 16px;
  padding: 10px 16px 10px 10px;
  gap: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  pointer-events: none;
}
.support-menu-item:hover {
  background: rgba(0, 136, 255, 0.1);
  border-color: rgba(0, 136, 255, 0.4);
  transform: translateX(-4px) !important;
}
.support-menu.open .support-menu-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* Staggered animation */
.support-menu.open .support-menu-item:nth-child(1) { transition-delay: 0.15s; }
.support-menu.open .support-menu-item:nth-child(2) { transition-delay: 0.10s; }
.support-menu.open .support-menu-item:nth-child(3) { transition-delay: 0.05s; }
.support-menu.open .support-menu-item:nth-child(4) { transition-delay: 0s; }

.s-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 136, 255, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-text-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.s-title {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.s-sub {
  color: #aaa;
  font-size: 12px;
  margin-top: 2px;
}

/* ── MY PROFILE PAGE VIEW ──────────────────────────────── */
.profile-card {
  padding: 32px 24px;
  background: var(--card-1);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}
.profile-avatar-wrap {
  position: relative;
  margin-bottom: 24px;
}
.profile-avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-avatar-circle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}
.profile-badge-free {
  position: absolute;
  top: 0;
  right: -30px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.profile-username-wrap {
  text-align: center;
  margin-bottom: 32px;
  width: 100%;
}
.profile-username-wrap h3 {
  font-size: 26px;
  margin: 0 0 10px;
  color: #fff;
}
.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10B981;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.tap-to-change {
  color: #777;
  font-size: 13px;
  margin: 0;
}

.profile-stats {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label {
  color: #aaa;
  font-size: 15px;
}
.stat-val {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.profile-referral {
  width: 100%;
}
.ref-label {
  color: #aaa;
  font-size: 14px;
  margin: 0 0 10px;
}
.ref-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ref-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 136, 255, 0.3);
  border-radius: 12px;
  height: 48px;
  padding: 0 16px;
  color: var(--accent);
  font-size: 14px;
  outline: none;
}
.ref-copy-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ref-copy-btn:hover {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}
.ref-helper {
  color: #666;
  font-size: 12px;
  margin: 0;
}

  /* ── Mobile Login Scale Refinements ─────────────────────────── */
  @media (max-width: 480px) {
    .login-inner {
      padding: 10px 16px;
      width: 100%;
    }

    .auth-card {
      padding: 16px 14px 12px;
      border-radius: 16px;
      margin-bottom: 8px;
    }
    
    .auth-brand {
      margin-top: 0;
      margin-bottom: 10px;
      gap: 8px;
    }
    
    .brand-badge {
      width: 32px;
      height: 32px;
      font-size: 16px;
    }
    
    .brand-text {
      font-size: 20px;
    }
    
    .mini-accent-line {
      margin: 6px auto;
      height: 2px;
      width: 60px;
    }
    
    .auth-brand-subtitle {
      font-size: 12px;
    }

    .auth-card h2 {
      font-size: 24px;
      margin-bottom: 2px;
    }

    .auth-subtitle {
      font-size: 13px;
      margin-bottom: 10px;
    }

    .field-label {
      font-size: 12px;
      margin-top: 8px;
      margin-bottom: 4px;
    }

    .input-wrap, .verification-code {
      min-height: 42px;
      border-radius: 10px;
    }

    .input-wrap input {
      font-size: 14px;
    }
    
    .input-icon {
      font-size: 15px;
      width: 32px;
    }

    .square-icon-button {
      width: 42px;
      height: 42px;
      border-radius: 10px;
    }

    .submit-button {
      min-height: 44px;
      font-size: 14px;
      margin-top: 12px;
      border-radius: 10px;
    }

    .auth-card.mini-card {
      padding: 10px 14px;
      margin-top: 0;
      margin-bottom: 10px;
      border-radius: 12px;
    }
    
    .auth-card.mini-card p {
      font-size: 13px;
    }
    .auth-card.mini-card button {
      padding: 6px 12px;
      font-size: 12px;
    }
  }