@import url('https://fonts.googleapis.com/css2?family=Anton&family=Dancing+Script:wght@700&family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
  --accent: #f6c453;
  --accent-2: #f2a74b;
  --accent-grad: linear-gradient(135deg, #f6c453, #f2a74b);
  --accent-soft: rgba(246, 196, 83, 0.14);
  --accent-ring: rgba(246, 196, 83, 0.35);
  --ring-grad: linear-gradient(135deg, #f6c453, #f2a74b);

  --bg: #0d0d0f;
  --app-bg: rgba(255, 255, 255, 0.06);
  --lk-surface: rgba(255, 255, 255, 0.085);
  --surface: rgba(255, 255, 255, 0.075);
  --surface-2: rgba(255, 255, 255, 0.12);
  --surface-strong: rgba(32, 32, 38, 0.72);
  --chrome-bg: rgba(255, 255, 255, 0.11);
  --chrome-active: rgba(255, 255, 255, 0.22);
  --chrome-filter: blur(24px) saturate(1.75);
  --chrome-edge: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  --chrome-icon: rgba(255, 253, 247, 0.92);

  --border: rgba(255, 255, 255, 0.14);
  --border-2: rgba(255, 255, 255, 0.22);
  --text: #fffdf7;
  --text-muted: rgba(255, 253, 247, 0.6);
  --text-dim: rgba(255, 253, 247, 0.38);
  --danger: #ff5a4d;
  --success: #34c759;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --viewfinder-radius: 44px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);

  --app-max: 460px;
  --sidebar-w: 248px;
  --nav-h: 66px;
  --theme-bg-glow:
    radial-gradient(960px 620px at 56% 36%, rgba(246, 196, 83, 0.14), transparent 65%),
    radial-gradient(880px 540px at 14% 10%, rgba(246, 196, 83, 0.08), transparent 60%),
    linear-gradient(160deg, #151418 0%, #0e0e11 52%, #0a0a0d 100%);
  --camera-stage-solid: linear-gradient(165deg, #232329 0%, #17171c 55%, #121216 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(44, 44, 52, 0.62) 0%, rgba(22, 22, 27, 0.72) 100%);
  --camera-stage-border: rgba(255, 255, 255, 0.14);
  --camera-halo: rgba(246, 196, 83, 0.14);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #232329 0%, #131317 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(34, 33, 39, 0.78) 0%, rgba(20, 20, 24, 0.84) 100%);
  --shutter-gap: #18181c;
  --camera-stage-bg: var(--camera-stage-solid);
  --camera-stage-filter: none;
}

/* ===== 14 LOCKET GOLD THEMES (FULL WEB BACKGROUND + CAMERA STAGE CHASSIS) ===== */
:root[data-theme="gold"] {
  --accent: #FFB800;
  --accent-2: #FFE599;
  --accent-grad: linear-gradient(135deg, #FFF4D7, #FFB800);
  --ring-grad: linear-gradient(135deg, #FFF4D7, #FFB800);
  --accent-soft: rgba(255, 184, 0, 0.18);
  --bg: #1c1507;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(245, 176, 39, 0.30), transparent 66%),
    radial-gradient(860px 560px at 12% 12%, rgba(255, 229, 153, 0.16), transparent 60%),
    radial-gradient(880px 580px at 90% 90%, rgba(217, 119, 6, 0.20), transparent 62%),
    linear-gradient(160deg, #2b200a 0%, #1c1507 52%, #120d04 100%);
  --camera-stage-solid: linear-gradient(165deg, #5e491c 0%, #433312 52%, #2d220c 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(112, 88, 34, 0.56) 0%, rgba(58, 44, 15, 0.68) 100%);
  --camera-stage-border: rgba(255, 224, 130, 0.32);
  --camera-halo: rgba(255, 184, 0, 0.28);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #3d2f12 0%, #211909 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(66, 51, 20, 0.62) 0%, rgba(33, 25, 9, 0.76) 100%);
  --shutter-gap: #382b10;
}

:root[data-theme="hotToGo"] {
  --accent: #FF4D79;
  --accent-2: #FF3F04;
  --accent-grad: linear-gradient(135deg, #FF007A, #FF3F04);
  --ring-grad: linear-gradient(135deg, #FF5E8E, #FF2442);
  --accent-soft: rgba(255, 46, 99, 0.20);
  --bg: #240913;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(255, 46, 99, 0.34), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(255, 63, 4, 0.20), transparent 60%),
    radial-gradient(900px 600px at 90% 90%, rgba(225, 29, 72, 0.24), transparent 62%),
    linear-gradient(160deg, #380d1d 0%, #240913 52%, #16050b 100%);
  --camera-stage-solid: linear-gradient(165deg, #a62657 0%, #8c2344 52%, #63182d 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(186, 44, 96, 0.58) 0%, rgba(112, 26, 48, 0.68) 100%);
  --camera-stage-border: rgba(255, 130, 168, 0.34);
  --camera-halo: rgba(255, 46, 99, 0.32);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #6e1a3a 0%, #3b0d1e 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(92, 22, 48, 0.62) 0%, rgba(44, 10, 23, 0.78) 100%);
  --shutter-gap: #6b1a36;
}

:root[data-theme="sunrise"] {
  --accent: #FF8552;
  --accent-2: #FE526B;
  --accent-grad: linear-gradient(135deg, #FF763B, #FE526B);
  --ring-grad: linear-gradient(135deg, #FF8566, #F43F5E);
  --accent-soft: rgba(255, 118, 59, 0.20);
  --bg: #24100d;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(255, 118, 59, 0.32), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(254, 82, 107, 0.22), transparent 60%),
    radial-gradient(880px 580px at 90% 90%, rgba(234, 88, 12, 0.20), transparent 62%),
    linear-gradient(160deg, #381914 0%, #24100d 52%, #160907 100%);
  --camera-stage-solid: linear-gradient(165deg, #a3523d 0%, #873c42 54%, #5c262b 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(178, 88, 66, 0.58) 0%, rgba(112, 46, 52, 0.68) 100%);
  --camera-stage-border: rgba(255, 168, 140, 0.34);
  --camera-halo: rgba(255, 118, 59, 0.30);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #693129 0%, #381816 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(88, 42, 36, 0.62) 0%, rgba(42, 19, 17, 0.78) 100%);
  --shutter-gap: #662d2c;
}

:root[data-theme="jewelry"] {
  --accent: #FCD34D;
  --accent-2: #FFF1CD;
  --accent-grad: linear-gradient(135deg, #FFF1CD, #F59E0B);
  --ring-grad: linear-gradient(135deg, #FFFBEB, #F59E0B);
  --accent-soft: rgba(252, 211, 77, 0.18);
  --bg: #1f170b;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(217, 164, 65, 0.32), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(254, 240, 138, 0.18), transparent 60%),
    radial-gradient(880px 580px at 90% 90%, rgba(180, 128, 36, 0.22), transparent 62%),
    linear-gradient(160deg, #302410 0%, #1f170b 52%, #130e06 100%);
  --camera-stage-solid: linear-gradient(165deg, #96773f 0%, #7d5f26 54%, #523d16 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(164, 128, 62, 0.56) 0%, rgba(96, 72, 26, 0.68) 100%);
  --camera-stage-border: rgba(254, 240, 138, 0.34);
  --camera-halo: rgba(245, 158, 11, 0.28);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #59451e 0%, #2e230e 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(78, 60, 28, 0.62) 0%, rgba(38, 29, 12, 0.78) 100%);
  --shutter-gap: #57421b;
}

:root[data-theme="mist"] {
  --accent: #6FE6B8;
  --accent-2: #5ED8FF;
  --accent-grad: linear-gradient(135deg, #5ED8FF, #88FF6A);
  --ring-grad: linear-gradient(135deg, #6EE7B7, #38BDF8);
  --accent-soft: rgba(111, 230, 184, 0.18);
  --bg: #081c1a;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(45, 168, 138, 0.32), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(56, 189, 248, 0.20), transparent 60%),
    radial-gradient(880px 580px at 90% 90%, rgba(16, 185, 129, 0.22), transparent 62%),
    linear-gradient(160deg, #0e2e2a 0%, #081c1a 52%, #051110 100%);
  --camera-stage-solid: linear-gradient(165deg, #1f7a7a 0%, #246e59 54%, #16473b 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(36, 136, 128, 0.56) 0%, rgba(22, 86, 68, 0.68) 100%);
  --camera-stage-border: rgba(110, 231, 183, 0.34);
  --camera-halo: rgba(52, 211, 153, 0.28);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #164f48 0%, #0b2925 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(20, 74, 68, 0.62) 0%, rgba(10, 38, 34, 0.78) 100%);
  --shutter-gap: #184f44;
}

:root[data-theme="sea"] {
  --accent: #38BDF8;
  --accent-2: #1269FF;
  --accent-grad: linear-gradient(135deg, #12F3FF, #1269FF);
  --ring-grad: linear-gradient(135deg, #38BDF8, #2563EB);
  --accent-soft: rgba(56, 189, 248, 0.18);
  --bg: #071728;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(14, 134, 196, 0.34), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(37, 99, 235, 0.24), transparent 60%),
    radial-gradient(880px 580px at 90% 90%, rgba(6, 182, 212, 0.22), transparent 62%),
    linear-gradient(160deg, #0b2642 0%, #071728 52%, #040e1a 100%);
  --camera-stage-solid: linear-gradient(165deg, #0f7291 0%, #155ca3 54%, #0d3a6e 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(18, 122, 158, 0.58) 0%, rgba(18, 76, 138, 0.68) 100%);
  --camera-stage-border: rgba(125, 211, 252, 0.34);
  --camera-halo: rgba(18, 194, 255, 0.30);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #0d486b 0%, #07253b 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(13, 58, 88, 0.64) 0%, rgba(7, 29, 48, 0.80) 100%);
  --shutter-gap: #0e4570;
}

:root[data-theme="neptune"] {
  --accent: #A78BFA;
  --accent-2: #19F1FF;
  --accent-grad: linear-gradient(120deg, #545BFF 20%, #AA3FFF, #19F1FF 80%);
  --ring-grad: linear-gradient(135deg, #A78BFA, #22D3EE);
  --accent-soft: rgba(167, 139, 250, 0.20);
  --bg: #110c29;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(124, 58, 237, 0.34), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(880px 580px at 90% 90%, rgba(79, 70, 229, 0.26), transparent 62%),
    linear-gradient(160deg, #1b1442 0%, #110c29 52%, #0a0719 100%);
  --camera-stage-solid: linear-gradient(165deg, #4347ad 0%, #5b27b5 52%, #125c75 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(76, 78, 184, 0.58) 0%, rgba(86, 38, 168, 0.66) 100%);
  --camera-stage-border: rgba(167, 139, 250, 0.36);
  --camera-halo: rgba(139, 92, 246, 0.32);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #2e246e 0%, #16113b 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(44, 34, 102, 0.64) 0%, rgba(20, 15, 52, 0.80) 100%);
  --shutter-gap: #352373;
}

:root[data-theme="goulash"] {
  --accent: #C084FC;
  --accent-2: #7E22CE;
  --accent-grad: linear-gradient(135deg, #C084FC, #6B21A8);
  --ring-grad: linear-gradient(135deg, #D8B4FE, #9333EA);
  --accent-soft: rgba(192, 132, 252, 0.20);
  --bg: #180926;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(147, 51, 234, 0.36), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(192, 132, 252, 0.22), transparent 60%),
    radial-gradient(880px 580px at 90% 90%, rgba(107, 33, 168, 0.26), transparent 62%),
    linear-gradient(160deg, #291042 0%, #180926 52%, #0e0518 100%);
  --camera-stage-solid: linear-gradient(165deg, #7428b5 0%, #54168c 54%, #370b5e 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(124, 44, 194, 0.58) 0%, rgba(72, 18, 122, 0.68) 100%);
  --camera-stage-border: rgba(216, 180, 254, 0.34);
  --camera-halo: rgba(168, 85, 247, 0.34);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #481575 0%, #24093d 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(68, 21, 107, 0.64) 0%, rgba(32, 9, 54, 0.80) 100%);
  --shutter-gap: #43126e;
}

:root[data-theme="orbit"] {
  --accent: #E879F9;
  --accent-2: #2CE9F1;
  --accent-grad: linear-gradient(135deg, #2CE9F1, #BA76D0, #FA7DAD);
  --ring-grad: linear-gradient(135deg, #67E8F9, #F472B6);
  --accent-soft: rgba(232, 121, 249, 0.18);
  --bg: #161021;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(186, 104, 200, 0.32), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(44, 233, 241, 0.22), transparent 60%),
    radial-gradient(880px 580px at 90% 90%, rgba(244, 114, 182, 0.24), transparent 62%),
    linear-gradient(160deg, #1b2838 0%, #241630 52%, #180c1c 100%);
  --camera-stage-solid: linear-gradient(165deg, #2a8396 0%, #78478f 52%, #9e476a 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(46, 138, 158, 0.54) 0%, rgba(126, 75, 148, 0.60) 52%, rgba(168, 76, 114, 0.66) 100%);
  --camera-stage-border: rgba(240, 171, 252, 0.34);
  --camera-halo: rgba(215, 124, 226, 0.30);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #4a2d5c 0%, #241730 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(48, 56, 82, 0.62) 0%, rgba(42, 24, 52, 0.78) 100%);
  --shutter-gap: #59335c;
}

:root[data-theme="bubbleGum"] {
  --accent: #FF85D0;
  --accent-2: #EC4899;
  --accent-grad: linear-gradient(135deg, #FBCFE8, #EC4899);
  --ring-grad: linear-gradient(135deg, #FBCFE8, #EC4899);
  --accent-soft: rgba(255, 126, 204, 0.22);
  --bg: #24111f;
  --theme-bg-glow:
    radial-gradient(1020px 680px at 58% 38%, rgba(236, 72, 153, 0.34), transparent 66%),
    radial-gradient(880px 580px at 12% 12%, rgba(192, 132, 252, 0.22), transparent 60%),
    radial-gradient(900px 600px at 92% 90%, rgba(244, 114, 182, 0.24), transparent 62%),
    linear-gradient(160deg, #3b1c32 0%, #261221 52%, #180b15 100%);
  --camera-stage-solid: linear-gradient(165deg, #98507e 0%, #87436f 52%, #632d50 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(168, 88, 140, 0.60) 0%, rgba(114, 52, 94, 0.70) 100%);
  --camera-stage-border: rgba(251, 207, 232, 0.36);
  --camera-halo: rgba(244, 114, 182, 0.34);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #6b3558 0%, #3d1c32 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(94, 46, 77, 0.64) 0%, rgba(48, 22, 39, 0.80) 100%);
  --shutter-gap: #693256;
}

:root[data-theme="cloud"] {
  --accent: #93C5FD;
  --accent-2: #E0F2FE;
  --accent-grad: linear-gradient(135deg, #FFFFFF, #8BD8FF);
  --ring-grad: linear-gradient(135deg, #E0F2FE, #60A5FA);
  --accent-soft: rgba(147, 197, 253, 0.20);
  --bg: #131c24;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(124, 151, 173, 0.34), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(147, 197, 253, 0.22), transparent 60%),
    radial-gradient(880px 580px at 90% 90%, rgba(96, 165, 250, 0.18), transparent 62%),
    linear-gradient(160deg, #212e3b 0%, #151f28 52%, #0d131a 100%);
  --camera-stage-solid: linear-gradient(165deg, #68737d 0%, #5c758a 54%, #3e5263 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(114, 130, 144, 0.56) 0%, rgba(78, 104, 126, 0.68) 100%);
  --camera-stage-border: rgba(224, 242, 254, 0.34);
  --camera-halo: rgba(139, 216, 255, 0.26);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #435463 0%, #24303b 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(64, 78, 92, 0.62) 0%, rgba(31, 41, 51, 0.78) 100%);
  --shutter-gap: #465969;
}

:root[data-theme="crystal"] {
  --accent: #F4F4F5;
  --accent-2: #A1A1AA;
  --accent-grad: linear-gradient(135deg, #FFFFFF, #A4A4A4);
  --ring-grad: linear-gradient(135deg, #FFFFFF, #D4D4D8);
  --accent-soft: rgba(255, 255, 255, 0.18);
  --bg: #1a1a1e;
  --theme-bg-glow:
    radial-gradient(980px 660px at 58% 38%, rgba(161, 161, 170, 0.28), transparent 66%),
    radial-gradient(860px 560px at 14% 12%, rgba(228, 228, 231, 0.16), transparent 60%),
    linear-gradient(160deg, #2a2a30 0%, #1b1b20 52%, #111115 100%);
  --camera-stage-solid: linear-gradient(165deg, #74747a 0%, #5b5b61 54%, #3f3f45 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(132, 132, 140, 0.54) 0%, rgba(78, 78, 86, 0.68) 100%);
  --camera-stage-border: rgba(255, 255, 255, 0.32);
  --camera-halo: rgba(228, 228, 231, 0.22);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #48484f 0%, #27272c 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(72, 72, 78, 0.60) 0%, rgba(36, 36, 40, 0.78) 100%);
  --shutter-gap: #4a4a50;
}

:root[data-theme="midnight"] {
  --accent: #D4D4D8;
  --accent-2: #8E8E93;
  --accent-grad: linear-gradient(135deg, #E5E5EA, #8E8E93);
  --ring-grad: linear-gradient(135deg, #E5E5EA, #636366);
  --accent-soft: rgba(255, 255, 255, 0.12);
  --bg: #030304;
  --theme-bg-glow:
    radial-gradient(900px 580px at 58% 38%, rgba(113, 113, 122, 0.12), transparent 65%),
    linear-gradient(180deg, #070709 0%, #020203 100%);
  --camera-stage-solid: linear-gradient(165deg, #141418 0%, #0b0b0e 55%, #060608 100%);
  --camera-stage-glass: linear-gradient(165deg, rgba(26, 26, 32, 0.72) 0%, rgba(10, 10, 14, 0.84) 100%);
  --camera-stage-border: rgba(255, 255, 255, 0.12);
  --camera-halo: rgba(161, 161, 170, 0.10);
  --camera-fallback-bg: radial-gradient(circle at 50% 42%, #18181d 0%, #09090c 100%);
  --side-nav-tint: linear-gradient(180deg, rgba(20, 20, 24, 0.82) 0%, rgba(8, 8, 10, 0.90) 100%);
  --shutter-gap: #0c0c0f;
}

/* ===== GLASSMORPHISM UI STYLE (SOLID VS LIQUID GLASS) ===== */
:root[data-ui-style="solid"] {
  --chrome-bg: #1c1c1e;
  --chrome-active: #2c2c2e;
  --chrome-filter: none;
  --chrome-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --lk-surface: #1c1c1e;
  --camera-stage-bg: var(--camera-stage-solid);
  --camera-stage-filter: none;
}

:root[data-ui-style="glass"] {
  --chrome-bg: rgba(255, 255, 255, 0.11);
  --chrome-active: rgba(255, 255, 255, 0.22);
  --chrome-filter: blur(24px) saturate(1.75);
  --chrome-edge: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  --lk-surface: rgba(255, 255, 255, 0.085);
  --camera-stage-bg: var(--camera-stage-glass);
  --camera-stage-filter: blur(28px) saturate(1.75);
}

/* ===== LITE PERFORMANCE MODE ===== */
:root[data-perf="lite"],
:root[data-perf="lite"] * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: auto !important;
  min-height: 100% !important;
  background-color: var(--bg);
  overflow-x: clip !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
}

html body {
  height: auto !important;
  min-height: 100dvh !important;
  background-color: var(--bg);
  background-image: var(--theme-bg-glow);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hidden {
  display: none !important;
}

/* ===== APP ICONS ===== */
.brand-heart-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(246, 196, 83, 0.28);
}

.brand-heart-icon.lg {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(246, 196, 83, 0.28);
}

/* ===== BOOT SPLASH ===== */
.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--bg);
  background-image: var(--theme-bg-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-splash-logo {
  animation: bootPulse 1.2s ease-in-out infinite;
}

@keyframes bootPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.07);
    opacity: 1;
  }
}

/* ===== PRE-LOGIN SCREEN ===== */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: var(--bg);
  background-image: var(--theme-bg-glow);
}

.auth-split-card {
  width: 100%;
  max-width: 840px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: #0e0e10;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 540px;
}

.auth-brand-panel {
  padding: 48px 40px;
  background: radial-gradient(circle at 22% 10%, rgba(246, 196, 83, 0.22), rgba(246, 196, 83, 0.04) 48%, #100f0d 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.auth-brand-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fffdf7 20%, #f6c453 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.auth-brand-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 320px;
}

.auth-form-panel {
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: #0e0e10;
}

.auth-form-heading {
  font-size: 23px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.auth-mobile-header {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 8px;
}

.saved-accounts-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.saved-account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--lk-surface);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}

.saved-account-row:hover {
  background: var(--surface-strong);
  border-color: var(--accent-ring);
}

.saved-account-row img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.saved-account-meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.saved-account-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-account-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field-label .req {
  color: var(--danger);
}

.input-pill-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-pill {
  width: 100%;
  height: 54px;
  border-radius: 18px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 18px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.input-pill:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.input-pill::placeholder {
  color: var(--text-dim);
}

.input-pill.has-right-btn {
  padding-right: 52px;
}

.eye-btn {
  position: absolute;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.eye-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.auth-inline-link {
  align-self: flex-end;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: -2px;
}

.auth-inline-link:hover {
  color: var(--accent);
}

.btn-gold-pill {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #1c1c1e;
  font-size: 16.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(246, 196, 83, 0.25);
  transition: transform 0.15s, opacity 0.15s, filter 0.15s;
}

.btn-gold-pill:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-gold-pill:active {
  transform: scale(0.985);
}

.btn-gold-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-dark-pill {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: #1c1c1e;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.btn-dark-pill:hover {
  background: #26262a;
}

.auth-lang-btn {
  align-self: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
}

.auth-lang-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.auth-legal {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 899px) {
  .auth-split-card {
    grid-template-columns: 1fr;
    max-width: 420px;
    border: none;
    background: transparent;
    box-shadow: none;
    min-height: auto;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    padding: 12px 6px;
    background: transparent;
  }

  .auth-form-heading {
    display: none;
  }

  .auth-mobile-header {
    display: flex;
  }
}

/* ===== MAIN SHELL (DESKTOP SIDEBAR + STAGE) ===== */
.app-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex;
}

.side-nav {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: 14px;
  left: 14px;
  bottom: 14px;
  border-radius: 26px;
  background: var(--side-nav-tint, rgba(255, 255, 255, 0.075));
  border: 1px solid var(--camera-stage-border, rgba(255, 255, 255, 0.16));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 50;
  overflow-y: auto;
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 20px;
  cursor: pointer;
}

.side-brand-text {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.side-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.side-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-width: 1.9;
}

.side-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.side-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.side-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent);
  color: #1c1c1e;
}

/* Mobile Top & Bottom Chrome */
.mobile-top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  align-items: center;
  justify-content: space-between;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 58%, rgba(13, 13, 15, 0.72) 86%, transparent 100%);
}

.mobile-top-bar>button {
  pointer-events: auto;
}

.mobile-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.circle-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--chrome-bg);
  box-shadow: var(--chrome-edge);
  backdrop-filter: var(--chrome-filter);
  color: var(--chrome-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}

.circle-icon-btn:hover {
  background: var(--chrome-active);
}

.circle-icon-btn:active {
  transform: scale(0.93);
}

.circle-icon-btn svg {
  width: 20px;
  height: 20px;
}

.friends-count-pill {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--chrome-bg);
  box-shadow: var(--chrome-edge);
  backdrop-filter: var(--chrome-filter);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-2);
  padding: 0;
}

.mobile-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  z-index: 60;
  pointer-events: none;
}

.mobile-bottom-dock>* {
  pointer-events: auto;
}

.dock-side-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--chrome-bg);
  box-shadow: var(--chrome-edge), var(--shadow);
  backdrop-filter: var(--chrome-filter);
  color: var(--chrome-icon);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-side-circle svg {
  width: 21px;
  height: 21px;
}

.dock-side-circle.active {
  color: var(--accent);
  border-color: var(--accent);
}

.dock-center-pill {
  height: 60px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--chrome-bg);
  box-shadow: var(--chrome-edge), var(--shadow);
  backdrop-filter: var(--chrome-filter);
  display: flex;
  align-items: center;
  gap: 26px;
}

.dock-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.dock-nav-btn.active {
  color: var(--accent);
}

.dock-nav-btn svg {
  width: 22px;
  height: 22px;
}

.dock-shutter-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2.5px var(--accent);
}

/* Main Content Stage */
.main-stage {
  margin-left: calc(var(--sidebar-w) + 28px);
  flex: 1;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 44px;
  position: relative;
}

.view-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-only-btn {
  display: none;
}

.swipe-transition {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

/* ===== CAMERA & COMPOSE STAGE (THEMED LOCKET CAMERA CHASSIS + AMBIENT HALO) ===== */
#view-camera {
  position: relative;
  isolation: isolate;
}

#view-camera::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, 96vw);
  height: min(680px, 96vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--camera-halo, rgba(246, 196, 83, 0.18)) 0%, transparent 68%);
  filter: blur(26px);
  pointer-events: none;
  z-index: -1;
  transition: background 0.4s ease;
}

.camera-stage {
  position: relative;
  width: 100%;
  max-width: calc(var(--app-max) + 44px);
  padding: 22px 22px 20px;
  border-radius: calc(var(--viewfinder-radius) + 12px);
  background: var(--camera-stage-bg);
  border: 1px solid var(--camera-stage-border, rgba(255, 255, 255, 0.16));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.52),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 0 56px var(--camera-halo, rgba(246, 196, 83, 0.14));
  backdrop-filter: var(--camera-stage-filter, none);
  -webkit-backdrop-filter: var(--camera-stage-filter, none);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: background 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease;
}

.viewfinder-box {
  width: 100%;
  max-width: var(--app-max);
  aspect-ratio: 1 / 1;
  border-radius: var(--viewfinder-radius);
  background: #121214;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.44), 0 0 0 1.5px rgba(255, 255, 255, 0.16);
  user-select: none;
  touch-action: pan-y;
}

.viewfinder-box.photobooth-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 16px 50px rgba(0, 0, 0, 0.6);
}

.viewfinder-box.dragover {
  box-shadow: 0 0 0 3px var(--accent), 0 0 40px var(--accent-soft);
}

.viewfinder-video,
.viewfinder-canvas,
.viewfinder-preview-img,
.viewfinder-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewfinder-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

.viewfinder-fx-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
}

.sticker-layer {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.sticker-node {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  transform: translate(-50%, -50%);
  font-size: 40px;
  line-height: 1.1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}

.sticker-node.text-sticker {
  font-size: 24px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  white-space: nowrap;
}

.sticker-node:active {
  cursor: grabbing;
}

.sticker-delete-x {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}

.sticker-node:hover .sticker-delete-x,
.sticker-node:hover .sticker-scale-btn {
  display: flex;
}

.sticker-node.meme-sticker {
  line-height: 0;
  filter: none;
}

.meme-sticker-img {
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.sticker-scale-btn {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(24, 24, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 10px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Hand-Crafted Illustrated Meme Stickers Grid inside #stickerModal */
.meme-stickers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.meme-sticker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 6px 7px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), background 0.16s, border-color 0.16s;
}

.meme-sticker-card:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--accent);
}

.meme-sticker-card:active {
  transform: scale(0.95);
}

.meme-sticker-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meme-sticker-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.meme-sticker-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.camera-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  background: var(--camera-fallback-bg, radial-gradient(circle at 50% 45%, #1d1d22, #111113));
  cursor: pointer;
  transition: background 0.35s ease;
}

.camera-fallback-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.camera-fallback p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.camera-fallback span {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 260px;
}

/* Viewfinder Corner Floating Buttons */
.vf-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 15;
}

.vf-top-left {
  top: 18px;
  left: 18px;
}

.vf-top-right {
  top: 18px;
  right: 18px;
}

.vf-bottom-left {
  bottom: 18px;
  left: 18px;
}

.vf-bottom-right {
  bottom: 18px;
  right: 18px;
}

.vf-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.vf-btn:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: scale(1.06);
}

.vf-btn.active {
  background: rgba(246, 196, 83, 0.25);
  border-color: var(--accent);
  color: var(--accent);
}

.vf-btn.flash-on {
  background: rgba(255, 214, 10, 0.30);
  border-color: #ffd60a;
  color: #ffe55c;
  box-shadow: 0 0 18px rgba(255, 214, 10, 0.52), inset 0 0 8px rgba(255, 235, 130, 0.35);
}

.vf-btn.flash-on svg path {
  fill: currentColor;
}

/* Screen Selfie Ring-Light (when Flash/Torch is ON without rear hardware LED) */
.screen-torch-backdrop {
  position: fixed;
  inset: 0;
  z-index: 42;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 56% 44%, rgba(255, 250, 235, 0.16) 0%, rgba(255, 251, 240, 0.86) 58%, rgba(255, 252, 245, 0.96) 100%);
  transition: opacity 0.28s ease;
}

@media (max-width: 900px) {
  .screen-torch-backdrop {
    background: radial-gradient(circle at 50% 44%, rgba(255, 250, 235, 0.12) 0%, rgba(255, 251, 240, 0.88) 56%, rgba(255, 253, 246, 0.97) 100%);
  }
}

body.screen-torch-on .screen-torch-backdrop {
  opacity: 1;
}

body.screen-torch-on #view-camera {
  z-index: 55;
}

body.screen-torch-on .camera-stage {
  background: linear-gradient(165deg, rgba(255, 253, 246, 0.94) 0%, rgba(255, 247, 226, 0.92) 100%) !important;
  border-color: #ffffff !important;
  box-shadow:
    0 0 75px 24px rgba(255, 248, 224, 0.85),
    0 20px 50px rgba(0, 0, 0, 0.22) !important;
}

body.screen-torch-on .viewfinder-box {
  box-shadow:
    0 0 0 7px #fffef9,
    0 0 48px 14px rgba(255, 246, 214, 0.92),
    inset 0 0 24px rgba(255, 252, 240, 0.36) !important;
}

body.screen-torch-on .history-jump-btn {
  color: #1c1c1e;
}

.screen-retina-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: #fffef8;
  opacity: 0;
  transition: opacity 0.24s ease-out;
}

.screen-retina-flash.firing {
  opacity: 0.96;
  transition: opacity 0.04s linear;
}

.vf-btn svg {
  width: 19px;
  height: 19px;
}

.vf-top-pill {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vf-bottom-pill {
  position: absolute;
  bottom: 98px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 27;
  padding: 6px 12px 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.pb-exit-chip {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.pb-exit-chip:hover {
  background: rgba(255, 59, 48, 0.78);
}

/* Live Photobooth Mini Collage Preview Card (bottom center inside viewfinder) */
.pb-mini-preview {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  width: 76px;
  height: 76px;
  padding: 5px;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.25);
  display: grid;
  gap: 3.5px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.pb-mini-preview.layout-grid2x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.pb-mini-preview.layout-strip2 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.pb-mini-preview.layout-highlight {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1.55fr 1fr;
}

.pb-mini-preview.layout-highlight .pb-mini-slot:first-child {
  grid-column: 1 / -1;
}

.pb-mini-preview.layout-strip4 {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 2.5px;
}

.pb-mini-preview.layout-collage3 {
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.pb-mini-preview.layout-collage3 .pb-mini-slot:first-child {
  grid-row: 1 / -1;
}

.pb-mini-preview.layout-polaroid4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.pb-mini-preview.layout-polaroid4 .pb-mini-slot {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.pb-mini-slot {
  position: relative;
  border-radius: 5px;
  background: #d4d4d8;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pb-mini-preview.is-dark .pb-mini-slot {
  background: rgba(255, 255, 255, 0.2);
}

.pb-mini-slot.current {
  box-shadow: inset 0 0 0 2px #f6c453, 0 0 0 1px rgba(246, 196, 83, 0.5);
  animation: pbSlotPulse 1.1s ease-in-out infinite;
}

.pb-mini-slot.filled {
  background: #18181b;
  box-shadow: none;
  animation: pbSlotPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.pb-mini-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes pbSlotPulse {

  0%,
  100% {
    box-shadow: inset 0 0 0 2px #f6c453, 0 0 6px rgba(246, 196, 83, 0.45);
  }

  50% {
    box-shadow: inset 0 0 0 2.5px #ffd76a, 0 0 10px rgba(246, 196, 83, 0.8);
  }
}

@keyframes pbSlotPop {
  0% {
    transform: scale(0.84);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hide distracting corner tools & config pill while actively capturing Photobooth */
.viewfinder-box.photobooth-capturing .vf-corner,
.viewfinder-box.photobooth-capturing #pbBottomPill {
  opacity: 0;
  pointer-events: none;
}

.viewfinder-box.photobooth-capturing .pb-mini-preview {
  cursor: default;
}

.vf-countdown {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.14);
  font-size: 92px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.vf-countdown.tick {
  animation: cdPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cdPop {
  0% {
    transform: scale(1.25);
    opacity: 0.4;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.vf-flash {
  position: absolute;
  inset: 0;
  z-index: 32;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

.vf-flash.active {
  opacity: 0.88;
  transition: none;
}

.vf-rec-indicator {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 29;
  padding: 6px 16px 9px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
}

.rec-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5px;
  background: rgba(0, 0, 0, 0.28);
}

.rec-progress-bar {
  height: 100%;
  width: 0%;
  background: #fde047;
  transition: width 0.1s linear;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 1s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

/* Compose Caption Input Pill inside Viewfinder */
.compose-caption-wrap {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 16;
  display: flex;
  justify-content: center;
}

.compose-caption-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  max-width: 92%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.compose-caption-pill input {
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: center;
  min-width: 120px;
  max-width: 280px;
}

.compose-caption-pill input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

/* Camera Action Row (Gallery | Shutter | Flip) */
.shutter-row {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
}

.gallery-thumb-btn {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: var(--lk-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.15s, border-color 0.15s;
}

.gallery-thumb-btn:hover {
  transform: scale(1.06);
  border-color: var(--accent);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shutter-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 4px;
  background: var(--ring-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(246, 196, 83, 0.25);
  transition: transform 0.15s;
}

.shutter-btn:active {
  transform: scale(0.92);
}

.shutter-btn.recording {
  background: linear-gradient(135deg, #ff3b30, #ff6b6b);
  animation: pulseDot 0.9s infinite;
}

.shutter-btn.pb-capturing {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 24px rgba(239, 68, 68, 0.45);
}

.shutter-btn.pb-capturing .shutter-inner {
  background: #1c1c1e;
  color: #ef4444;
  font-size: 20px;
}

.shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--shutter-gap, var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1c1e;
}

.flip-cam-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 16, 20, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.15s;
}

.flip-cam-btn:hover {
  background: var(--chrome-active);
}

.flip-cam-btn:active {
  transform: rotate(180deg);
}

.flip-cam-btn svg {
  width: 22px;
  height: 22px;
}

.history-jump-btn {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 99px;
}

.history-jump-btn:hover {
  color: var(--text);
  background: var(--surface);
}

/* Compose Action Row (X | Send ➤ | Aa+) */
.compose-action-row {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 12px;
}

.compose-side-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}

.compose-side-btn:hover {
  background: var(--surface-2);
  transform: scale(1.06);
}

.compose-side-btn svg {
  width: 26px;
  height: 26px;
}

.compose-send-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #2c2c30;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, background 0.15s;
}

.compose-send-btn:hover {
  background: var(--accent-grad);
  color: #1c1c1e;
  transform: scale(1.04);
}

.compose-send-btn:active {
  transform: scale(0.94);
}

.compose-send-btn svg {
  width: 32px;
  height: 32px;
}

/* Horizontal Circular Recipient Strip */
.recipient-strip-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.recipient-strip {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 4px;
  scrollbar-width: none;
}

.recipient-strip::-webkit-scrollbar {
  display: none;
}

.recip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 58px;
  cursor: pointer;
}

.recip-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lk-surface);
  border: 2.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.recip-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recip-item.active .recip-circle {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(246, 196, 83, 0.25);
  transform: scale(1.04);
}

.recip-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 58px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.recip-item.active .recip-name {
  color: var(--accent);
  font-weight: 700;
}

.recipient-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.mini-refresh-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-refresh-btn:hover {
  color: var(--text);
  background: var(--chrome-active);
}

.video-compress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lk-surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

.video-compress-bar select {
  background: #2c2c30;
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  outline: none;
}

/* ===== MOMENTS FEED (KHOẢNH KHẮC) ===== */
.feed-top-bar {
  width: 100%;
  max-width: 820px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-dropdown-wrap {
  position: relative;
}

.filter-pill-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--chrome-bg);
  box-shadow: var(--chrome-edge);
  backdrop-filter: var(--chrome-filter);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-pill-btn:hover {
  background: var(--chrome-active);
}

.filter-menu {
  position: absolute;
  top: 46px;
  right: 0;
  min-width: 210px;
  max-height: 320px;
  overflow-y: auto;
  background: #1e1e22;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 80;
}

.filter-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.filter-option.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.filter-option img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== FULL-BLEED AMBIENT PHOTO BACKDROP & SINGLE-MOMENT SWIPE (LOCKET iOS FEED) ===== */
.feed-ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #0c0b0e;
}

.feed-ambient-img {
  position: absolute;
  inset: -14%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.18) translateZ(0);
  filter: blur(44px) saturate(1.48) brightness(0.64);
  opacity: 0;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

.feed-ambient-img.active {
  opacity: 1;
}

.feed-ambient-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.08) 44%, rgba(0, 0, 0, 0.48) 100%);
}

body[data-view="feed"] .main-stage {
  z-index: 1;
  background: transparent;
}

body[data-view="feed"] .side-nav {
  background: rgba(14, 14, 18, 0.62);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
}

body[data-view="feed"] .mobile-top-bar {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.1) 68%, transparent 100%);
}

body[data-view="feed"] .mobile-bottom-dock {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.12) 68%, transparent 100%);
}

body[data-view="feed"] .mobile-top-bar .circle-icon-btn,
body[data-view="feed"] .mobile-top-bar .friends-count-pill,
body[data-view="feed"] .feed-top-bar .filter-pill-btn,
body[data-view="feed"] .feed-top-bar .circle-icon-btn,
body[data-view="feed"] .feed-reply-bar,
body[data-view="feed"] .feed-activity-pill,
body[data-view="feed"] .dock-center-pill,
body[data-view="feed"] .dock-side-circle,
body[data-view="feed"] .feed-nav-btn {
  background: rgba(24, 20, 18, 0.42);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body[data-view="feed"] .feed-meta-row {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

body[data-view="feed"] .feed-time {
  color: rgba(255, 255, 255, 0.74);
}

body[data-view="feed"] .feed-more-btn {
  color: rgba(255, 255, 255, 0.8);
}

.feed-stage {
  width: 100%;
  max-width: var(--app-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  user-select: none;
  touch-action: pan-x;
}

.feed-single-unit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.feed-single-unit.swipe-snap {
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.feed-single-unit.swipe-enter-up {
  animation: feedEnterFromBottom 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feed-single-unit.swipe-enter-down {
  animation: feedEnterFromTop 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes feedEnterFromBottom {
  from {
    opacity: 0.25;
    transform: translate3d(0, 64px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes feedEnterFromTop {
  from {
    opacity: 0.25;
    transform: translate3d(0, -64px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.feed-card-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--viewfinder-radius);
  overflow: hidden;
  background: #121214;
  position: relative;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: grab;
}

.feed-card-frame:active {
  cursor: grabbing;
}

.feed-card-frame img,
.feed-card-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.feed-mute-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.feed-overlay-pill-wrap {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.moment-overlay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
  color: #fff;
  max-width: 92%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.feed-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
}

.feed-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-2);
}

.feed-time {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
}

.feed-more-btn {
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 16px;
}

.feed-more-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.feed-reply-bar {
  position: relative;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: var(--chrome-bg);
  box-shadow: var(--chrome-edge);
  backdrop-filter: var(--chrome-filter);
  display: flex;
  align-items: center;
  padding: 0 10px 0 18px;
  gap: 6px;
  gap: 5px;
}

.feed-reply-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
}

.feed-reply-bar input::placeholder {
  color: var(--text-dim);
}

.react-emoji-btn {
  width: 34px;
  height: 34px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  flex-shrink: 0;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.16s;
}

.react-emoji-btn:hover {
  transform: scale(1.22);
  background: rgba(255, 255, 255, 0.08);
}

.react-emoji-btn:active {
  transform: scale(0.92);
  transform: scale(0.88);
}

.react-emoji-btn.reacted-pop {
  background: rgba(246, 196, 83, 0.26);
  box-shadow: 0 0 0 1px rgba(246, 196, 83, 0.45);
  animation: reactBtnBounce 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reactBtnBounce {
  0% {
    transform: scale(0.82);
  }

  55% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1.06);
  }
}

.react-more-btn {
  color: var(--text-muted);
}

.react-more-btn:hover {
  color: var(--text);
}

.feed-emoji-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: min(310px, 92vw);
  padding: 10px;
  border-radius: 22px;
  background: rgba(24, 24, 29, 0.92);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  z-index: 45;
  animation: toastIn 0.16s ease;
}

.feed-emoji-popover button {
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s, background 0.14s;
}

.feed-emoji-popover button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.2);
}

/* Falling Reaction Emoji Rain Layer (120fps Hardware-Accelerated Canvas Rain) */
.emoji-rain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 340;
}

.emoji-rain-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.feed-activity-pill {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--chrome-bg);
  box-shadow: var(--chrome-edge);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feed-activity-pill:hover {
  background: var(--chrome-active);
}

.feed-nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.feed-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--chrome-bg);
  box-shadow: var(--chrome-edge);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-nav-btn:hover:not(:disabled) {
  background: var(--chrome-active);
}

.feed-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ===== ALL PHOTOS GRID (TẤT CẢ ẢNH) ===== */
.all-photos-grid {
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-tile {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1c1e;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s;
}

.photo-tile:hover {
  transform: scale(0.985);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.tile-me-badge {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
}

/* AI-filter moment badges (Locket AI / "Thử ngay") */
.tile-ai-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, #f472b6, #a855f7);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.45);
}

.feed-ai-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, #f472b6, #c026d3);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ===== MEMORIES CALENDAR (KỶ NIỆM) ===== */
.memories-wrap {
  width: 100%;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.page-title-center {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.calendar-months-scroll {
  width: 100%;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px;
  border-radius: 26px;
  background: var(--lk-surface);
  border: 1px solid var(--border);
}

.month-heading {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-cell {
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-dim);
}

.cal-cell.empty {
  background: transparent;
}

.cal-cell.has-dot::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.cal-cell.has-photo {
  cursor: pointer;
}

.cal-cell.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cal-cell.streak-day {
  box-shadow: 0 0 0 2px var(--accent);
}

.cal-cell.today-add {
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent-soft);
}

.cal-streak-tag {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--accent);
  color: #1c1c1e;
  font-size: 10px;
  font-weight: 800;
}

.memories-stats-pill {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--lk-surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.memories-stats-divider {
  width: 1px;
  height: 16px;
  background: var(--border-2);
}

.btn-vlog-outline {
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-vlog-outline:hover {
  background: var(--accent-soft);
}

.vip-mini-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent);
  color: #1c1c1e;
}

/* ===== MESSAGES (TIN NHẮN — 2-PANE SPLIT) ===== */
.chat-split {
  width: 100%;
  max-width: 960px;
  height: calc(100vh - 80px);
  min-height: 540px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}

.chat-list-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.chat-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-list-header h2 {
  font-size: 22px;
  font-weight: 800;
}

.gold-plus-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #1c1c1e;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conv-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.conv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.conv-row:hover {
  background: var(--surface);
}

.conv-row.active {
  background: var(--surface-2);
}

.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #2c2c30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  overflow: hidden;
}

.conv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conv-avatar.ai-grad {
  background: linear-gradient(135deg, #F6C453, #FF7ECC, #8B5CF6);
  color: #1c1c1e;
}

.conv-info {
  flex: 1;
  min-width: 0;
}

.conv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.conv-name {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 11.5px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.conv-preview {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.chat-thread-pane {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.chat-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14.5px;
}

.chat-thread-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}

.msg-bubble-row.me {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-bubble-row.peer {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-bubble {
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
}

.msg-bubble-row.me .msg-bubble {
  background: var(--accent-grad);
  color: #1c1c1e;
  font-weight: 600;
  border-bottom-right-radius: 6px;
}

.msg-bubble-row.peer .msg-bubble {
  background: var(--lk-surface);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.msg-meta {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-bar {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input-bar input {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  background: var(--lk-surface);
  border: 1px solid var(--border);
  padding: 0 16px;
  font-size: 14px;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--accent);
}

.chat-send-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #1c1c1e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .chat-split {
    grid-template-columns: 1fr;
    height: calc(100vh - 170px);
  }

  .chat-split.thread-open .chat-list-pane {
    display: none;
  }

  .chat-split:not(.thread-open) .chat-thread-pane {
    display: none;
  }
}

/* ===== FRIENDS & PROFILE SHARED CONTAINER ===== */
.narrow-page {
  width: 100%;
  min-width: 0;
  max-width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.friends-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.friends-header-center h2 {
  font-size: 22px;
  font-weight: 800;
}

.friends-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-bar-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: var(--lk-surface);
  border: 1px solid var(--border);
}

.search-bar-pill input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-add-btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #1c1c1e;
  font-size: 12.5px;
  font-weight: 800;
}

.social-share-row {
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
}

.social-share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.social-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.social-share-item:hover .social-circle {
  transform: translateY(-2px) scale(1.04);
}

.social-circle.messenger {
  background: linear-gradient(135deg, #00C6FF 0%, #0068FF 55%, #8A2BE2 100%);
}

.social-circle.telegram {
  background: linear-gradient(135deg, #38BDF8 0%, #2AABEE 52%, #1D8AC7 100%);
  box-shadow: 0 6px 16px rgba(42, 171, 238, 0.36), inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.social-circle.zalo {
  background: #ffffff;
  color: #0068FF;
  box-shadow: 0 6px 16px rgba(0, 104, 255, 0.28);
}

.social-circle.insta {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 65%, #285AEB 95%);
}

.social-circle.other {
  background: linear-gradient(135deg, #3a3a40, #232328);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-circle.qr-gold {
  background: linear-gradient(135deg, #fde047 0%, #f6c453 50%, #e59824 100%);
  box-shadow: 0 6px 16px rgba(246, 196, 83, 0.36), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.lk-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 22px;
  background: var(--lk-surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: var(--chrome-filter);
  -webkit-backdrop-filter: var(--chrome-filter);
}

.lk-card-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.lk-card-title {
  font-size: 14.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lk-card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.friend-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
}

.friend-list-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--ring-grad);
  flex-shrink: 0;
}

.friend-list-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
}

.friend-list-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.friend-remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.friend-remove-btn:hover {
  background: rgba(255, 90, 77, 0.2);
  color: var(--danger);
}

/* ===== PROFILE (HỒ SƠ) ===== */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

.profile-avatar-ring {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  padding: 3.5px;
  background: var(--ring-grad);
  position: relative;
}

.profile-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}

.profile-badge-dot {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-grad);
  border: 2.5px solid var(--bg);
  color: #1c1c1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.profile-display-name {
  font-size: 24px;
  font-weight: 800;
}

.profile-edit-photo-btn {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}

.settings-group-title {
  font-size: 16px;
  font-weight: 800;
  margin-top: 8px;
}

.settings-list {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 22px;
  background: var(--lk-surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
  backdrop-filter: var(--chrome-filter);
  -webkit-backdrop-filter: var(--chrome-filter);
}

.settings-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  position: relative;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: background 0.15s;
}

.settings-row:active {
  background: rgba(255, 255, 255, 0.08);
}

.settings-row-icon,
.settings-row-text,
.ios-switch,
.settings-row-arrow,
.settings-action-tag {
  pointer-events: none;
}

.settings-row-arrow {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.settings-action-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.settings-inline-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.15s, border-color 0.15s;
}

.settings-inline-pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

a.settings-row {
  text-decoration: none;
  color: inherit;
}

.dev-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, #f6c453, #e59824);
  color: #141416;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 6px;
}

.settings-row-icon.ic-fb {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.28), rgba(12, 82, 184, 0.16));
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.34);
}

.settings-row-icon.ic-tiktok {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.24), rgba(37, 244, 238, 0.16));
  color: #f43f5e;
  border-color: rgba(254, 44, 85, 0.32);
}

.settings-row-icon.ic-tele {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.26), rgba(34, 158, 217, 0.14));
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.34);
}

.settings-row-icon.ic-zalo {
  background: linear-gradient(135deg, rgba(0, 104, 255, 0.28), rgba(0, 75, 181, 0.16));
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}

.settings-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.settings-row-icon.ic-gold {
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.24), rgba(217, 119, 6, 0.14));
  color: #fbbf24;
  border-color: rgba(246, 196, 83, 0.32);
}

.settings-row-icon.ic-cyan {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(14, 165, 233, 0.12));
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.28);
}

.settings-row-icon.ic-blue {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(59, 130, 246, 0.12));
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.28);
}

.settings-row-icon.ic-pink {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.24), rgba(192, 38, 211, 0.14));
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.28);
}

.settings-row-icon.ic-rose {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.24), rgba(225, 29, 72, 0.14));
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.28);
}

.settings-row-icon.ic-teal {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(16, 185, 129, 0.12));
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.28);
}

.settings-row-icon.ic-purple {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.24), rgba(124, 58, 237, 0.14));
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}

.settings-row-icon.ic-orange {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.24), rgba(234, 88, 12, 0.14));
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

.settings-row-icon.ic-indigo {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.24), rgba(79, 70, 229, 0.14));
  color: #818cf8;
  border-color: rgba(129, 140, 248, 0.3);
}

.settings-row-icon.ic-violet {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.24), rgba(147, 51, 234, 0.14));
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}

.settings-row-icon.ic-danger {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.22), rgba(220, 38, 38, 0.12));
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.28);
}

.settings-row-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.settings-row-title {
  font-size: 14.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.settings-row-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.settings-row.danger .settings-row-title,
.settings-row.danger .settings-row-icon {
  color: var(--danger);
}

/* iOS Toggle Switch */
.ios-switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ios-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.ios-switch.on {
  background: var(--accent);
}

.ios-switch.on::after {
  transform: translateX(20px);
}

/* ===== CUSTOM APP ICON PICKER MODAL (LOCKET iOS STYLE) ===== */
.app-icon-row-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  background: #1a1a1f;
}

.app-icon-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-icon-picker-sheet {
  max-width: 470px;
  max-height: 90vh;
  background: rgba(28, 28, 32, 0.94);
  backdrop-filter: blur(32px) saturate(1.7);
  -webkit-backdrop-filter: blur(32px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.app-icon-sheet-head {
  position: relative;
  text-align: center;
  padding: 12px 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.app-icon-sheet-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 4px;
  letter-spacing: -0.02em;
}

.app-icon-sheet-head p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.38;
  max-width: 310px;
  margin: 0 auto;
}

.app-icon-tab-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 14px;
  background: rgba(15, 15, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-icon-browser-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 9px;
  border-radius: 10px 10px 6px 6px;
  background: #2b2d33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: 600;
  color: #f3f4f6;
  max-width: 100%;
  min-width: 0;
}

.app-icon-browser-tab img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: cover;
}

.app-icon-browser-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
  padding: 4px 2px 10px;
}

.app-icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-icon-squircle {
  width: 100%;
  max-width: 82px;
  aspect-ratio: 1 / 1;
  border-radius: 22.5%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
  background: #18181c;
}

.app-icon-cell:hover .app-icon-squircle {
  transform: translateY(-2px) scale(1.04);
}

.app-icon-cell:active .app-icon-squircle {
  transform: scale(0.94);
}

.app-icon-cell.active .app-icon-squircle {
  box-shadow: 0 0 0 2.5px var(--accent), 0 10px 24px rgba(246, 196, 83, 0.28);
}

.app-icon-squircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-icon-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.8px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-icon-cell.active .app-icon-radio {
  background: #f6c453;
  border-color: #f6c453;
  color: #18181b;
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgba(246, 196, 83, 0.4);
}

.app-icon-sheet-footer {
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 24, 0.96);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.app-icon-install-btn {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 800;
  padding: 0 16px;
}

.app-icon-install-btn img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.app-icon-install-guide {
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(246, 196, 83, 0.1);
  border: 1px solid rgba(246, 196, 83, 0.32);
  font-size: 12.5px;
  line-height: 1.48;
  color: #f3f4f6;
}

/* ===== MODALS & BOTTOM SHEETS ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sheet-modal {
  width: 100%;
  max-width: 460px;
  max-height: 86vh;
  border-radius: 28px;
  background: rgba(24, 24, 30, 0.74);
  backdrop-filter: blur(28px) saturate(1.75);
  -webkit-backdrop-filter: blur(28px) saturate(1.75);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .sheet-modal {
  transform: translateY(0) scale(1);
}

.sheet-modal.wide {
  max-width: 680px;
}

.sheet-header {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sheet-header h3 {
  font-size: 17px;
  font-weight: 800;
}

.sheet-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sheet-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.sheet-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: #1c1c1e;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Segmented Control (Solid/Glass, Presets/Custom, Lite Off/On/Auto) */
.seg-control {
  display: flex;
  padding: 4px;
  border-radius: 14px;
  background: #2c2c30;
  gap: 4px;
}

.seg-btn {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.seg-btn.active {
  background: #ffffff;
  color: #1c1c1e;
}

/* 14 Theme Swatch Phone Mockups (Exact match to Screenshot 198!) */
/* ===== LOCKET iOS CAMERA THEME PICKER ("Chủ đề máy ảnh") ===== */
.theme-picker-sheet {
  max-width: 460px;
  max-height: 92vh;
  border-radius: 34px;
  transition: background 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.theme-picker-sheet .sheet-body {
  scrollbar-width: none;
  padding: 6px 20px 18px;
}

.theme-picker-sheet .sheet-body::-webkit-scrollbar {
  display: none;
}

.theme-sheet-top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 20px 6px;
}

.theme-sheet-handle {
  width: 38px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  margin-bottom: 12px;
}

.theme-sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.theme-sheet-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.theme-sheet-sub {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.38;
  margin: 4px 0 0;
}

.theme-carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 -18px;
}

.theme-nav-arrow {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.15s, background 0.15s;
}

.theme-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.07);
}

.theme-nav-arrow.prev {
  left: 12px;
}

.theme-nav-arrow.next {
  right: 12px;
}

.theme-cards-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px calc(50% - 110px) 8px;
  scrollbar-width: none;
  width: 100%;
}

.theme-cards-scroll::-webkit-scrollbar {
  display: none;
}

.theme-phone-card {
  flex-shrink: 0;
  width: 220px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0.72;
  transform: scale(0.92);
}

.theme-phone-card.active {
  opacity: 1;
  transform: scale(1);
}

.theme-phone-preview {
  width: 220px;
  height: 356px;
  border-radius: 34px;
  padding: 14px 13px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.theme-phone-card.active .theme-phone-preview {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--accent);
}

.locket-mock-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.locket-mock-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.locket-mock-pill {
  width: 66px;
  height: 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}

.theme-phone-screen {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.theme-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.locket-mock-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.locket-mock-shutter-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.theme-phone-shutter {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 3.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.theme-phone-shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid rgba(0, 0, 0, 0.42);
}

.locket-mock-history-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.locket-mock-sq {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
}

.locket-mock-bar {
  width: 48px;
  height: 11px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
}

.theme-phone-label {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.theme-phone-card.active .theme-phone-label {
  color: #ffffff;
  font-weight: 800;
}

.theme-active-name-pill {
  padding: 4px 14px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
}

.theme-dots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.theme-swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.theme-swatch-dot.active {
  transform: scale(1.25);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45);
}

.theme-extra-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 12px 14px;
}

.theme-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-opt-row .seg-control {
  flex-shrink: 0;
}

.theme-opt-row .seg-btn {
  white-space: nowrap;
  padding: 0 8px;
  font-size: 12px;
}

/* Caption Picker Pills (Exact match to Screenshots 97 & 105!) */
.caption-cat-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 8px;
}

.caption-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2c2c30;
  color: #fff;
  border: 1.5px solid transparent;
  transition: transform 0.14s;
}

.cap-pill:hover {
  transform: translateY(-1px);
}

.cap-pill.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.custom-preview-bar {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.grad-dots-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.grad-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.grad-dot:hover {
  transform: scale(1.12);
}

.grad-dot.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2.5px rgba(246, 196, 83, 0.45);
}

/* ===== VISUAL PHOTOBOOTH SHEET (LAYOUT DIAGRAMS, FILTER THUMBS, FRAME MOCKUPS) ===== */
.pb-layout-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.pb-layout-card {
  flex-shrink: 0;
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.pb-layout-diagram {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background: #f4f4f5;
  padding: 6px;
  border: 2.5px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 3px;
  transition: transform 0.15s, border-color 0.15s;
}

.pb-layout-card.active .pb-layout-diagram {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.pb-layout-diagram span {
  background: #d4d4d8;
  border-radius: 3px;
  display: block;
}

.pb-layout-diagram.diag-2x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.pb-layout-diagram.diag-2x2.polaroid span {
  border-bottom: 5px solid #ffffff;
  transform: rotate(-2deg);
}

.pb-layout-diagram.diag-strip4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, 1fr);
  column-gap: 5px;
  row-gap: 2.5px;
}

.pb-layout-diagram.diag-highlight {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1.6fr 1fr;
}

.pb-layout-diagram.diag-highlight span:first-child {
  grid-column: 1 / -1;
}

.pb-layout-diagram.diag-strip2 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.pb-layout-diagram.diag-collage3 {
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.pb-layout-diagram.diag-collage3 span:first-child {
  grid-row: 1 / -1;
}

.pb-layout-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.pb-layout-card.active .pb-layout-lbl {
  color: var(--accent);
}

/* Photobooth Visual Filter Cards */
.pb-style-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.pb-style-card {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.pb-style-thumb {
  width: 60px;
  height: 60px;
  border-radius: 13px;
  overflow: hidden;
  border: 2.5px solid transparent;
  background: #27272a;
  position: relative;
}

.pb-style-card.active .pb-style-thumb {
  border-color: var(--accent);
}

.pb-style-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-style-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 64px;
}

.pb-style-card.active .pb-style-lbl {
  color: var(--accent);
}

/* Photobooth Frame Mockup Cards (System & Community 1:2, 1:3, 2:2) */
.pb-sub-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-top: 8px;
}

.pb-helper-note {
  font-size: 11.5px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.4;
  margin-top: 4px;
}

.pb-slot-group-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 6px;
}

.pb-frame-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.pb-frame-item {
  flex-shrink: 0;
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.pb-frame-box {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: #26262a;
  border: 2.5px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, border-color 0.15s;
}

.pb-frame-item:hover .pb-frame-box {
  transform: translateY(-2px);
}

.pb-frame-item.active .pb-frame-box {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.pb-frame-box.dashed {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.pb-frame-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-frame-crown {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: var(--accent);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.user-is-vip .pb-frame-crown,
html.user-is-vip .vip-lock-badge {
  display: none !important;
}

.pb-frame-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.pb-frame-author {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  margin-top: -2px;
}

/* Visual Pattern & Seasonal Swatch Squares */
.pb-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pb-swatch-card {
  width: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.pb-swatch-box {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  border: 2.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.pb-swatch-box svg {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.32));
  transition: transform 0.16s ease;
}

.pb-swatch-card:hover .pb-swatch-box svg {
  transform: scale(1.08);
}

.pb-swatch-card.active .pb-swatch-box {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.pb-swatch-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.pb-swatch-card.active .pb-swatch-lbl {
  color: var(--accent);
}

.color-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
}

.color-box-input {
  width: 48px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: transparent;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

/* Studio Panel (Filters, Beauty, Effects, Adjust) */
.filter-circles-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.filter-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
}

.filter-circle-dot {
  width: 52px;
  height: 52px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.filter-circle-item:hover .filter-circle-dot {
  transform: translateY(-2px) scale(1.04);
}

.filter-circle-item.active .filter-circle-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.filter-color-pip {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #18181b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.filter-circle-dot.effect-dot svg {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.filter-circle-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-circle-item.active .filter-circle-label {
  color: var(--accent);
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

/* Frames Grid (Khung ảnh) */
.frames-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.frame-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 0;
}

.frame-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #2c2c30;
  border: 2px solid rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.frame-card:hover .frame-thumb {
  transform: translateY(-2px);
}

@media (min-width: 900px) and (max-height: 760px) {

  .viewfinder-box,
  .feed-card-frame {
    max-width: min(var(--app-max), 54vh);
  }

  .camera-stage {
    max-width: calc(min(var(--app-max), 54vh) + 36px);
    padding: 16px 18px 16px;
    border-radius: 50px;
    gap: 14px;
  }

  .main-stage {
    padding: 18px 24px 28px;
  }
}

.frame-card.active .frame-thumb {
  border-color: var(--accent);
}

.frame-tag-dyn {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--accent);
  color: #1c1c1e;
  font-size: 9px;
  font-weight: 800;
}

.frame-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ===== VIP SUBSCRIPTION DAYS TRACKER & PROGRESS BAR ===== */
.side-vip-pill {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, #f6c453, #d97706);
  color: #111;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.vip-days-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #111;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.vip-days-pill.paused {
  background: rgba(246, 196, 83, 0.22);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.vip-days-pill.free {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  box-shadow: none;
}

.vip-tracker-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
}

.vip-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vip-stat-lbl {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.vip-stat-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
}

.vip-tracker-top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.vip-upgrade-btn {
  padding: 8px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.vip-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.vip-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.vip-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #fde047, #f59e0b, #fb923c);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  transition: width 0.35s ease;
}

.vip-restore-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.4);
  font-size: 12.5px;
  color: #e2e8f0;
}

.vip-active-plan-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #4ade80;
  font-size: 12px;
  font-weight: 800;
}

/* Photobooth Daily Quota Pill */
.pb-quota-pill {
  margin-top: 3px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(246, 196, 83, 0.14);
  border: 1px solid rgba(246, 196, 83, 0.35);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===== MEMBERSHIP COMPARISON MATRIX & FAQ (REFERENCE-MATCHED) ===== */
.plan-cycle-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-day-mult-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.plan-day-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.plan-day-chip {
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s;
}

.plan-day-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #161618;
  font-weight: 800;
}

.cmp-card {
  width: 100%;
  border-radius: 20px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.11);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.cmp-scroll {
  width: 100%;
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  min-width: 470px;
  border-collapse: collapse;
  table-layout: fixed;
}

.cmp-table col.col-feat {
  width: 37%;
}

.cmp-table col.col-tier {
  width: 21%;
}

.cmp-table th,
.cmp-table td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  vertical-align: middle;
}

.cmp-table thead th {
  padding: 13px 8px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cmp-table thead th:first-child {
  text-align: left;
  padding-left: 16px;
}

.cmp-table thead th.tier-active-col {
  color: var(--accent);
}

.cmp-table td:first-child {
  text-align: left;
  padding-left: 16px;
  padding-right: 10px;
}

.cmp-table td:not(:first-child) {
  text-align: center;
}

.cmp-feat-name {
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f6;
  line-height: 1.32;
}

.cmp-feat-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
  line-height: 1.3;
}

.cmp-val-main {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.cmp-val-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  line-height: 1.25;
}

.cmp-val-highlight {
  font-size: 11px;
  font-weight: 800;
  color: #f6c453;
  margin-top: 2px;
  line-height: 1.25;
}

.cmp-check {
  color: #22c55e;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
}

.cmp-dash {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 700;
}

.cmp-ring-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-ring-jade {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 70%);
  border: 2px solid #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
}

.cmp-ring-crystal {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.24), transparent 70%);
  border: 2px solid #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.cmp-ring-fire {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 70%);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.cmp-select-row td {
  padding: 15px 8px;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.02);
}

.cmp-choose-btn {
  min-width: 78px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid rgba(246, 196, 83, 0.65);
  color: #f6c453;
  background: transparent;
  transition: transform 0.14s, background 0.14s, box-shadow 0.14s;
}

.cmp-choose-btn:hover {
  background: rgba(246, 196, 83, 0.14);
  transform: translateY(-1px);
}

.cmp-choose-btn.filled {
  background: linear-gradient(135deg, #f6c453, #e59824);
  border-color: transparent;
  color: #161618;
  box-shadow: 0 4px 14px rgba(246, 196, 83, 0.35);
}

.cmp-choose-btn.current {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.16);
  color: #4ade80;
}

/* FAQ Accordion */
.plan-faq-section {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.plan-faq-heading {
  font-size: 13.5px;
  font-weight: 800;
  color: #f6c453;
  margin-bottom: 6px;
}

.plan-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-faq-q {
  width: 100%;
  padding: 13px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  color: #f4f4f6;
}

.plan-faq-q span.faq-chevron {
  color: var(--text-muted);
  font-size: 13px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.plan-faq-item.open .plan-faq-q span.faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.plan-faq-a {
  display: none;
  padding: 0 4px 13px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.plan-faq-item.open .plan-faq-a {
  display: block;
}

/* Legal Modal Panes */
.legal-modal-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-highlight-banner {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246, 196, 83, 0.12);
  border: 1px solid rgba(246, 196, 83, 0.34);
  font-size: 12.5px;
  line-height: 1.5;
  color: #fde68a;
}

.legal-sec-box {
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-sec-box h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.legal-sec-box p,
.legal-sec-box li {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.legal-sec-box ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== EXCLUSIVE AVATAR RINGS, BADGES & PICKER MODAL ===== */
@keyframes ringGlowPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 8px var(--excl-glow, rgba(246, 196, 83, 0.35)));
  }

  50% {
    filter: drop-shadow(0 0 16px var(--excl-glow, rgba(246, 196, 83, 0.68)));
  }
}

.profile-avatar-ring[data-ring="jade"],
.feed-author-ring[data-ring="jade"],
.mobile-avatar-btn[data-ring="jade"] {
  --excl-glow: rgba(45, 212, 191, 0.6);
  background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 45%, #ccfbf1 75%, #10b981 100%) !important;
  border-color: transparent !important;
  animation: ringGlowPulse 2.8s ease-in-out infinite;
}

.profile-avatar-ring[data-ring="crystal"],
.feed-author-ring[data-ring="crystal"],
.mobile-avatar-btn[data-ring="crystal"] {
  --excl-glow: rgba(168, 85, 247, 0.65);
  background: linear-gradient(135deg, #7e22ce 0%, #c084fc 35%, #38bdf8 70%, #f472b6 100%) !important;
  border-color: transparent !important;
  animation: ringGlowPulse 2.6s ease-in-out infinite;
}

.profile-avatar-ring[data-ring="phoenix"],
.feed-author-ring[data-ring="phoenix"],
.mobile-avatar-btn[data-ring="phoenix"] {
  --excl-glow: rgba(245, 158, 11, 0.78);
  background: linear-gradient(135deg, #dc2626 0%, #f97316 32%, #fde047 65%, #f59e0b 100%) !important;
  border-color: transparent !important;
  animation: ringGlowPulse 2.2s ease-in-out infinite;
}

.mobile-avatar-btn[data-ring="jade"],
.mobile-avatar-btn[data-ring="crystal"],
.mobile-avatar-btn[data-ring="phoenix"] {
  padding: 2.5px;
}

.mobile-avatar-btn[data-ring="jade"] img,
.mobile-avatar-btn[data-ring="crystal"] img,
.mobile-avatar-btn[data-ring="phoenix"] img {
  border-radius: 50%;
  border: 1.5px solid var(--bg);
}

.profile-avatar-ring[data-ring="jade"] .profile-badge-dot {
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #042f2e;
}

.profile-avatar-ring[data-ring="crystal"] .profile-badge-dot {
  background: linear-gradient(135deg, #e879f9, #9333ea, #38bdf8);
  color: #ffffff;
}

.profile-avatar-ring[data-ring="phoenix"] .profile-badge-dot {
  background: linear-gradient(135deg, #fef08a, #f59e0b, #dc2626);
  color: #1c1917;
}

.excl-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: transform 0.15s;
}

.excl-badge-pill:hover {
  transform: scale(1.04);
}

.excl-badge-pill.jade {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.5);
  color: #5eead4;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.2);
}

.excl-badge-pill.crystal {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(192, 132, 252, 0.55);
  color: #e9d5ff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.24);
}

.excl-badge-pill.phoenix {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(220, 38, 38, 0.2));
  border-color: rgba(251, 191, 36, 0.65);
  color: #fde047;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.28);
}

.feed-author-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ring-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-author-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--bg);
}

.feed-excl-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
}

.feed-excl-tag.jade {
  background: rgba(45, 212, 191, 0.18);
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: #5eead4;
}

.feed-excl-tag.crystal {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #e9d5ff;
}

.feed-excl-tag.phoenix {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde047;
}

.ring-preview-stage {
  padding: 18px 14px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 25%, rgba(246, 196, 83, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ring-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ring-option-card {
  padding: 13px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.ring-option-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.075);
}

.ring-option-card.active {
  border-color: var(--accent);
  background: rgba(246, 196, 83, 0.12);
  box-shadow: 0 0 18px rgba(246, 196, 83, 0.18);
}

.ring-opt-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.ring-opt-tier {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ===== LOCKET QR SHARE CARD MODAL ===== */
.locket-qr-card {
  width: 100%;
  padding: 22px 18px 18px;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 0%, rgba(246, 196, 83, 0.18), rgba(22, 22, 27, 0.96) 68%);
  border: 1.5px solid rgba(246, 196, 83, 0.36);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-user-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-top: 2px;
}

.qr-user-handle {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.qr-code-frame {
  position: relative;
  width: 214px;
  height: 214px;
  margin: 8px 0 6px;
  padding: 12px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(246, 196, 83, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-frame>img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}

.qr-center-badge {
  position: absolute;
  width: 42px;
  height: 42px;
  padding: 4px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-center-badge img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
}

.qr-link-pill {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(246, 196, 83, 0.14);
  border: 1px solid rgba(246, 196, 83, 0.35);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
}

/* Photobooth Daily Quota Pill */
.pb-quota-pill {
  margin-top: 3px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(246, 196, 83, 0.14);
  border: 1px solid rgba(246, 196, 83, 0.35);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===== MEMBERSHIP COMPARISON MATRIX & FAQ (REFERENCE-MATCHED) ===== */
.plan-cycle-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-day-mult-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.plan-day-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.plan-day-chip {
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s;
}

.plan-day-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #161618;
  font-weight: 800;
}

.cmp-card {
  width: 100%;
  border-radius: 20px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.11);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.cmp-scroll {
  width: 100%;
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  min-width: 470px;
  border-collapse: collapse;
  table-layout: fixed;
}

.cmp-table col.col-feat {
  width: 37%;
}

.cmp-table col.col-tier {
  width: 21%;
}

.cmp-table th,
.cmp-table td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  vertical-align: middle;
}

.cmp-table thead th {
  padding: 13px 8px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cmp-table thead th:first-child {
  text-align: left;
  padding-left: 16px;
}

.cmp-table thead th.tier-active-col {
  color: var(--accent);
}

.cmp-table td:first-child {
  text-align: left;
  padding-left: 16px;
  padding-right: 10px;
}

.cmp-table td:not(:first-child) {
  text-align: center;
}

.cmp-feat-name {
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f6;
  line-height: 1.32;
}

.cmp-feat-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
  line-height: 1.3;
}

.cmp-val-main {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.cmp-val-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  line-height: 1.25;
}

.cmp-val-highlight {
  font-size: 11px;
  font-weight: 800;
  color: #f6c453;
  margin-top: 2px;
  line-height: 1.25;
}

.cmp-check {
  color: #22c55e;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
}

.cmp-dash {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 700;
}

.cmp-ring-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-ring-jade {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 70%);
  border: 2px solid #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
}

.cmp-ring-crystal {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.24), transparent 70%);
  border: 2px solid #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.cmp-ring-fire {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 70%);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.cmp-select-row td {
  padding: 15px 8px;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.02);
}

.cmp-choose-btn {
  min-width: 78px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid rgba(246, 196, 83, 0.65);
  color: #f6c453;
  background: transparent;
  transition: transform 0.14s, background 0.14s, box-shadow 0.14s;
}

.cmp-choose-btn:hover {
  background: rgba(246, 196, 83, 0.14);
  transform: translateY(-1px);
}

.cmp-choose-btn.filled {
  background: linear-gradient(135deg, #f6c453, #e59824);
  border-color: transparent;
  color: #161618;
  box-shadow: 0 4px 14px rgba(246, 196, 83, 0.35);
}

.cmp-choose-btn.current {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.16);
  color: #4ade80;
}

/* FAQ Accordion */
.plan-faq-section {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.plan-faq-heading {
  font-size: 13.5px;
  font-weight: 800;
  color: #f6c453;
  margin-bottom: 6px;
}

.plan-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-faq-q {
  width: 100%;
  padding: 13px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  color: #f4f4f6;
}

.plan-faq-q span.faq-chevron {
  color: var(--text-muted);
  font-size: 13px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.plan-faq-item.open .plan-faq-q span.faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.plan-faq-a {
  display: none;
  padding: 0 4px 13px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.plan-faq-item.open .plan-faq-a {
  display: block;
}

/* Fullscreen Rollcall Modal */
.rollcall-fullscreen {
  position: fixed;
  inset: 0;
  background: #050507;
  z-index: 250;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
}

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

.rollcall-body {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* Toast Notifications */
.toast-stack {
  position: fixed;
  top: max(20px, calc(env(safe-area-inset-top, 0px) + 14px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: #242428;
  border: 1px solid var(--border-2);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.22s ease;
}

.toast-pill.success {
  border-color: rgba(52, 199, 89, 0.5);
}

.toast-pill.error {
  border-color: rgba(255, 90, 77, 0.6);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Floating Hearts / Snow FX animation */
@keyframes floatParticle {
  0% {
    transform: translateY(105%) scale(0.8);
    opacity: 0;
  }

  20% {
    opacity: 0.9;
  }

  80% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(-15%) scale(1.1);
    opacity: 0;
  }
}

.fx-particle {
  position: absolute;
  animation: floatParticle linear infinite;
  pointer-events: none;
}

/* ===== MOBILE RESPONSIVE OVERRIDES (MUST REMAIN AT END OF FILE) ===== */
@media (max-width: 899px) {
  :root {
    --mob-safe-top: max(calc(env(safe-area-inset-top, 0px) + 12px), 44px);
    --mob-safe-bottom: max(env(safe-area-inset-bottom, 0px), 14px);
    --mob-top-bar-h: calc(var(--mob-safe-top) + 54px);
    --mob-bot-dock-h: calc(var(--mob-safe-bottom) + 80px);
  }

  .side-nav {
    display: none;
  }

  .mobile-top-bar {
    display: flex;
    height: auto;
    min-height: var(--mob-top-bar-h);
    padding:
      var(--mob-safe-top)
      max(18px, calc(env(safe-area-inset-right, 0px) + 16px))
      10px
      max(18px, calc(env(safe-area-inset-left, 0px) + 16px));
    background: linear-gradient(180deg, var(--bg) 56%, color-mix(in srgb, var(--bg) 72%, transparent) 85%, transparent 100%);
  }

  .mobile-bottom-dock {
    display: flex;
    bottom: 0;
    height: var(--mob-bot-dock-h);
    padding:
      8px
      max(18px, calc(env(safe-area-inset-right, 0px) + 16px))
      var(--mob-safe-bottom)
      max(18px, calc(env(safe-area-inset-left, 0px) + 16px));
    background: linear-gradient(0deg, var(--bg) 44%, color-mix(in srgb, var(--bg) 68%, transparent) 80%, transparent 100%);
  }

  .mobile-bottom-dock>#mobSwitchShortcut.hidden {
    display: flex !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none !important;
  }

  .main-stage {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    margin-left: 0;
    padding: var(--mob-top-bar-h) 14px var(--mob-bot-dock-h);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  #view-camera {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
  }

  .camera-stage {
    max-width: min(100%, 448px);
    min-height: auto;
    padding: 15px 14px 17px;
    border-radius: 46px;
    margin: 0 auto;
    justify-content: center;
    gap: 15px;
  }

  .narrow-page {
    padding-bottom: 36px;
  }
}

@media (max-width: 899px) and (max-height: 720px) {
  :root {
    --mob-safe-top: max(calc(env(safe-area-inset-top, 0px) + 10px), 22px);
    --mob-safe-bottom: max(env(safe-area-inset-bottom, 0px), 10px);
  }

  .camera-stage {
    padding: 12px 12px 14px;
    gap: 12px;
  }

  .viewfinder-box {
    max-width: min(100%, 46dvh);
  }
}

@media (max-width: 899px) {

  .viewfinder-box,
  .feed-card-frame {
    border-radius: 38px;
  }

  .feed-top-bar {
    margin-bottom: 10px;
  }

  .calendar-months-scroll {
    max-height: none;
    overflow-y: visible;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .sheet-modal,
  .sheet-modal.wide {
    max-width: 100%;
    max-height: 88dvh;
    border-radius: 28px 28px 0 0;
    border-bottom: none;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sheet-modal::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
    margin: 10px auto 0;
    flex-shrink: 0;
  }

  .mobile-only-btn {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .vip-tracker-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .vip-tracker-top .vip-upgrade-btn,
  #mySubBanner #mySubUpgradeMoreBtn {
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    margin-top: 2px;
  }

  #mySubBanner>div:first-child {
    flex-wrap: wrap;
  }

  .vip-tracker-stats {
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  }

  .settings-row {
    padding: 13px 14px;
    gap: 11px;
  }

  .lk-card {
    padding: 14px 15px;
    gap: 12px;
  }
}

/* ==================== SMOOTH BRAND TYPEWRITER (Locket Photobooth <-> LOCKET VNT) ==================== */
.auth-brand-title.tw-ready {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: initial;
  display: inline-flex;
  align-items: center;
  min-height: 1.15em;
  white-space: nowrap;
}

.auth-mobile-header .auth-brand-title.tw-ready {
  justify-content: center;
}

.auth-brand-title.tw-ready .brand-tw-label {
  background: linear-gradient(135deg, #fffdf7 20%, #f6c453 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.side-brand-text.tw-ready {
  display: inline-flex;
  align-items: center;
  min-height: 1.2em;
  white-space: nowrap;
}

.brand-tw-caret {
  display: inline-block;
  width: 0.085em;
  min-width: 2px;
  height: 0.88em;
  margin-left: 3px;
  border-radius: 2px;
  background: var(--accent, #f6c453);
  box-shadow: 0 0 8px var(--accent-glow, rgba(246, 196, 83, 0.55));
  opacity: 0;
  transform: translateY(0.02em);
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.tw-typing .brand-tw-caret {
  opacity: 1;
}

.tw-pausing .brand-tw-caret {
  opacity: 1;
  animation: brandCaretBlink 0.65s steps(2, start) infinite;
}

@keyframes brandCaretBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.15;
  }
}

/* ==================== SMOOTH BRAND TYPEWRITER (Locket Photobooth <-> LOCKET VNT) ==================== */
.auth-brand-title.tw-ready {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: initial;
  display: inline-flex;
  align-items: center;
  min-height: 1.15em;
  white-space: nowrap;
}

.auth-mobile-header .auth-brand-title.tw-ready {
  justify-content: center;
}

.auth-brand-title.tw-ready .brand-tw-label {
  background: linear-gradient(135deg, #fffdf7 20%, #f6c453 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.side-brand-text.tw-ready {
  display: inline-flex;
  align-items: center;
  min-height: 1.2em;
  white-space: nowrap;
}

.brand-tw-caret {
  display: inline-block;
  width: 0.085em;
  min-width: 2px;
  height: 0.88em;
  margin-left: 3px;
  border-radius: 2px;
  background: var(--accent, #f6c453);
  box-shadow: 0 0 8px var(--accent-glow, rgba(246, 196, 83, 0.55));
  opacity: 0;
  transform: translateY(0.02em);
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.tw-typing .brand-tw-caret {
  opacity: 1;
}

.tw-pausing .brand-tw-caret {
  opacity: 1;
  animation: brandCaretBlink 0.65s steps(2, start) infinite;
}

@keyframes brandCaretBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.15;
  }
}