/* Core CSS Design System for Callings */
:root {
    /* Color Palette */
    --bg-dark: #07050f;
    --bg-surface: #120c24;
    --bg-card: rgba(26, 18, 48, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 42, 116, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-pink: #ff2a74;
    --accent-purple: #8b5cf6;
    --accent-violet: #d946ef;
    --accent-gold: #fbbf24;
    --accent-success: #10b981;

    --gradient-primary: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    --gradient-hover: linear-gradient(135deg, #ff4c8c 0%, #a78bfa 100%);
    --gradient-dark: linear-gradient(180deg, rgba(18, 12, 36, 0.95) 0%, rgba(7, 5, 15, 0.98) 100%);

    --glass-bg: rgba(20, 14, 38, 0.6);
    --glass-blur: blur(16px);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(255, 42, 116, 0.25);

    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #271a47;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Ambient Background Glow */
.glow-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-pink {
    background: radial-gradient(circle, var(--accent-pink) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    right: -100px;
}

.glow-purple {
    background: radial-gradient(circle, var(--accent-purple) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -200px;
    left: -100px;
    animation-delay: -6s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(80px, 50px) scale(1.1);
    }
}

/* Typography & General Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

a:hover {
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-rose {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: 14px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 24px rgba(255, 42, 116, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-20deg);
    animation: btnShimmer 3s infinite;
}

@keyframes btnShimmer {
    0% {
        left: -100%;
    }

    60%,
    100% {
        left: 160%;
    }
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 42, 116, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-pink);
    background: rgba(255, 42, 116, 0.05);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Focus-visible: keyboard navigation outlines */
:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: 3px;
}

.btn:focus-visible,
.auth-tab-btn:focus-visible,
.safety-tab-btn:focus-visible,
.action-btn:focus-visible,
.modal-close:focus-visible,
.social-btn:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: 3px;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 5, 15, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* Header right-side actions wrapper */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    display: block;
    transition: var(--transition-fast);
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 8px rgba(255, 42, 116, 0.3));
}

.logo-text span {
    color: var(--accent-pink);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    min-height: calc(85vh - 75px);
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: linear-gradient(135deg, rgba(255, 42, 116, 0.12), rgba(139, 92, 246, 0.12));
    color: var(--accent-pink);
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 42, 116, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 20px rgba(255, 42, 116, 0.08);
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 40px rgba(139, 92, 246, 0.15);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Interactive Visuals */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    width: 250px;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    transition: var(--transition-smooth);
    animation: hoverFloat 6s infinite alternate ease-in-out;
}

.floating-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.card-details {
    padding: 16px;
}

.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.card-details h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.card-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-left {
    left: 20px;
    top: 20px;
    z-index: 2;
}

.card-right {
    right: 20px;
    bottom: 20px;
    animation-delay: -3s;
    z-index: 1;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    z-index: 3;
}

.floating-heart {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(255, 42, 116, 0.4);
    z-index: 2;
    top: 40%;
    left: 45%;
    animation: floatHeart 4s infinite alternate ease-in-out;
}

@keyframes hoverFloat {
    0% {
        transform: translateY(0px) rotate(-1deg);
    }

    100% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes floatHeart {
    0% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }

    100% {
        transform: translateY(-15px) scale(1.1) rotate(10deg);
    }
}

/* Pulse Animations */
.animate-pulse {
    animation: pulseGlow 2s infinite ease-in-out;
}

.animate-beat {
    animation: heartbeat 1.4s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes heartbeat {

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

    25% {
        transform: scale(1.15);
    }

    35% {
        transform: scale(1.05);
    }

    45% {
        transform: scale(1.2);
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.04) 0%, rgba(255, 42, 116, 0.03) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 24px 36px;
    flex: 1;
    min-width: 160px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover::before {
    opacity: 0.06;
}

.stat-item:hover {
    border-color: rgba(255, 42, 116, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    position: relative;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    position: relative;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    max-width: 460px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
    pointer-events: none;
    z-index: 1;
}

.profile-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 13px 44px 13px 42px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

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

.profile-search-input:focus {
    border-color: rgba(255, 42, 116, 0.45);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 42, 116, 0.1), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-clear-btn:hover {
    background: rgba(255, 42, 116, 0.15);
    border-color: rgba(255, 42, 116, 0.3);
    color: var(--accent-pink);
}

.search-no-results {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 48px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-no-results i {
    color: var(--accent-pink);
    font-size: 1.1rem;
}

/* Discover Section */
.discover-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 12px auto 0;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.profile-card:nth-child(1) {
    animation-delay: 0.05s;
}

.profile-card:nth-child(2) {
    animation-delay: 0.10s;
}

.profile-card:nth-child(3) {
    animation-delay: 0.15s;
}

.profile-card:nth-child(4) {
    animation-delay: 0.20s;
}

.profile-card:nth-child(5) {
    animation-delay: 0.25s;
}

.profile-card:nth-child(6) {
    animation-delay: 0.30s;
}

.profile-card:nth-child(7) {
    animation-delay: 0.35s;
}

.profile-card:nth-child(8) {
    animation-delay: 0.40s;
}

.profile-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: cardFadeUp 0.5s ease both;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.profile-card>* {
    position: relative;
    z-index: 1;
}

.profile-card:hover::before {
    opacity: 0.35;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 42, 116, 0.15);
}

@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.profile-card:hover .card-img {
    transform: scale(1.08);
}

.card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(7, 5, 15, 0.92) 100%);
}

.compatibility-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(7, 5, 15, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 42, 116, 0.5);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 5px 11px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.compatibility-tag i {
    color: var(--accent-pink);
    filter: drop-shadow(0 0 4px rgba(255, 42, 116, 0.6));
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.card-title-row h3 {
    font-size: 1.3rem;
}

.online-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--accent-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-success);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
}

.online-indicator::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent-success);
    opacity: 0.4;
    animation: onlinePulse 2s infinite ease-out;
}

@keyframes onlinePulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.online-indicator.offline {
    background-color: var(--text-muted);
    box-shadow: none;
}

.online-indicator.offline::after {
    display: none;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.card-location {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location i {
    color: var(--accent-pink);
    flex-shrink: 0;
}

.card-gender-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.gender-female {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.35);
}

.gender-female i {
    color: #f472b6;
}

.gender-male {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.gender-male i {
    color: #818cf8;
}

.card-occupation {
    font-size: 0.83rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-occupation i {
    color: var(--accent-pink);
    font-size: 0.78rem;
}

.card-short-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag-pill {
    font-size: 0.72rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    color: #a78bfa;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.tag-pill:hover {
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Footer Section */
.main-footer {
    background: #05030a;
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 20px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    margin-bottom: 24px;
    max-width: 320px;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL SYSTEMS (Global Layer)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 3, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

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

.modal-container {
    background: var(--gradient-dark);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 42, 116, 0.15);
    border-color: var(--accent-pink);
    transform: rotate(90deg);
}

/* Glassmorphism Styles */
.glassmorphic {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* ==========================================================================
   MODAL 1: DETAILED PROFILE VIEW MODAL STYLING
   ========================================================================== */
.modal-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.profile-details-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    height: 100%;
    overflow: hidden;
}

/* Photo Slider Left Column */
.profile-slider-column {
    background: #0c081e;
    position: relative;
    overflow: hidden;
    display: flex;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.active-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.4s ease;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

.prev-btn {
    left: 16px;
}

.next-btn {
    right: 16px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-indicators .indicator.active {
    background: var(--accent-pink);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--accent-pink);
}

/* Profile Info Right Column */
.profile-info-column {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    min-height: 0;
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    margin-top: 15px;
    /* offset the top button close room if wrapped */
}

.name-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.name-status-row h2 {
    font-size: 2.2rem;
    line-height: 1.2;
}

.compatibility-badge {
    background: rgba(255, 42, 116, 0.15);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(255, 42, 116, 0.1);
}

.profile-quick-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.detail-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item i {
    color: var(--accent-purple);
    width: 16px;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-section h3 {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.profile-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Prompt Card inside Profile */
.profile-prompt-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.prompt-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-purple);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.prompt-content {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
}

.interest-tags-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Footer Interaction Buttons */
.profile-modal-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 30px;
}

.profile-modal-actions .btn-full {
    width: 100%;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

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

.pass-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.like-btn {
    color: var(--accent-pink);
    border-color: rgba(255, 42, 116, 0.2);
}

.like-btn:hover {
    color: #fff;
    background: var(--accent-pink);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 42, 116, 0.4);
}

.spark-btn {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    color: var(--accent-gold);
    border-color: rgba(251, 191, 36, 0.2);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
}

.spark-btn:hover {
    color: var(--bg-dark);
    background: var(--accent-gold);
    border-color: transparent;
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
}

/* Spark Button Ripple Effect */
.spark-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(251, 191, 36, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.spark-btn:active .spark-ripple {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* ==========================================================================
   MODAL 3: SIGN IN / SIGN UP AUTH MODAL STYLING
   ========================================================================== */
.auth-container {
    max-width: 450px;
}

.auth-container::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.auth-layout {
    padding: 48px 40px 36px 40px;
    display: flex;
    flex-direction: column;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    margin-top: 10px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 42, 116, 0.2);
}

/* Forms Visibility */
.auth-form {
    display: none;
    flex-direction: column;
}

.auth-form.active {
    display: flex;
    animation: stepFadeIn 0.4s ease forwards;
}

.auth-form h3 {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.auth-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Form inputs & controls */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px 12px 46px;
    font-family: inherit;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--accent-pink);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(255, 42, 116, 0.15);
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent-pink);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--accent-pink);
}

.forgot-pass-link {
    font-weight: 600;
    color: var(--accent-pink);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.forgot-pass-link:hover {
    color: var(--accent-violet);
}

.register-prompt-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.register-prompt-text {
    color: var(--text-muted);
}

.register-prompt-link {
    font-weight: 700;
    color: var(--accent-purple);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.register-prompt-link:hover {
    color: var(--accent-pink);
    gap: 8px;
}

.terms-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: inline-block;
    cursor: pointer;
}

.terms-label input {
    accent-color: var(--accent-pink);
    margin-right: 6px;
}

/* Social Buttons */
.social-auth-section {
    margin-top: 24px;
}

.forgot-submit-spacing {
    margin-bottom: 20px;
}

.forgot-back-link-row {
    text-align: center;
    margin-bottom: 10px;
}

.divider-text {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider-text span {
    position: relative;
    background-color: var(--bg-surface);
    padding: 0 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 2;
}

.social-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 13px 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    letter-spacing: 0.01em;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* ==========================================================================
   TOAST NOTIFICATION STYLING
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(18, 12, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--accent-success);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    max-width: 350px;
}

.toast-notification.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-notification.error-toast {
    border-color: #ef4444;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.toast-icon {
    font-size: 1.4rem;
    color: var(--accent-success);
    margin-top: 2px;
}

.toast-notification.error-toast .toast-icon {
    color: #ef4444;
}

.toast-text-container h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-text-container p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet Portrait & smaller */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 24px;
        gap: 40px;
        min-height: auto;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 380px;
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .floating-card {
        width: 190px;
    }

    .floating-card img {
        height: 200px;
    }

    .floating-heart {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Modal Adjustments */
    .profile-details-layout {
        grid-template-columns: 1fr;
    }

    .profile-slider-column {
        height: 320px;
        min-height: auto;
    }

    .profile-info-column {
        padding: 24px;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {
    .modal-close {
        top: 16px;
        right: 16px;
    }

    .header-container {
        padding: 12px 16px;
    }

    .hero-section {
        padding: 20px 16px 40px 16px;
    }

    .hamburger-btn {
        display: flex;
    }

    #btnOpenAuth .btn-label,
    #btnOpenRegister .btn-label {
        display: inline;
    }

    #btnOpenAuth,
    #btnOpenRegister {
        padding: 8px 14px;
        min-width: unset;
        font-size: 0.82rem;
        gap: 5px;
    }

    .nav-menu {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        padding: 12px 0 4px 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.open {
        display: flex;
        animation: stepFadeIn 0.25s ease forwards;
    }

    .nav-link {
        padding: 10px 4px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        display: none;
        /* Hide complex floating visuals on mobile for brevity */
    }

    .stats-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        gap: 8px;
        padding: 16px 10px;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
        padding: 14px 8px;
        border-radius: 14px;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.65rem;
        letter-spacing: 0.03em;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .profile-card .card-img-wrapper {
        height: 180px;
    }

    .profile-card .compatibility-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
        top: 8px;
        right: 8px;
    }

    .profile-card .card-body {
        padding: 12px;
    }

    .profile-card .card-title-row h3 {
        font-size: 0.95rem;
    }

    .profile-card .card-meta-row {
        margin-bottom: 4px;
    }

    .profile-card .card-location {
        font-size: 0.72rem;
    }

    .profile-card .card-gender-badge {
        font-size: 0.68rem;
        padding: 2px 7px;
    }

    .profile-card .card-occupation {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .profile-card .card-short-desc {
        display: none;
    }

    .profile-card .card-tags {
        display: none;
    }

    .profile-card .btn-view-profile {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .search-wrapper {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .profile-search-input {
        font-size: 0.88rem;
        padding: 11px 40px 11px 38px;
        border-radius: 12px;
    }

    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-container {
        border-radius: 20px;
    }

    .auth-layout {
        /* 64px top = 20px modal-top + 36px close-btn height + 8px gap */
        padding: 64px 20px 28px;
    }

    .auth-tabs {
        margin-top: 0;
        margin-bottom: 22px;
    }

    .auth-form h3 {
        font-size: 1.35rem;
    }

    .profile-modal-actions {
        padding-top: 20px;
    }

    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .spark-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .discover-section {
        padding: 0px 12px 0px 12px;
    }

    .section-header {
        margin-top: 0;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .section-subtitle {
        font-size: 0.82rem;
    }

    .pagination-container {
        margin-top: 20px;
        margin-bottom: 10px;
        gap: 6px;
    }

    .stories-section {
        padding: 20px 16px 30px 16px;
    }

    .safety-container {
        height: 88vh;
    }
}

/* ==========================================================================
   ULTRA-WIDE & 4K DISPLAY STYLING (min-width: 1400px and min-width: 2000px)
   ========================================================================== */

/* QHD / WQHD screens (2K / 1440p) and generic desktop scaling */
@media (min-width: 1400px) {

    .header-container,
    .hero-section,
    .stats-container,
    .discover-section,
    .footer-container {
        max-width: 94%;
    }

    .hero-title {
        font-size: 4.8rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        max-width: 650px;
    }

    .hero-visual {
        max-width: 580px;
        width: 100%;
        margin: 0 auto;
    }

    .floating-card {
        width: 270px;
    }

    .floating-card img {
        height: 300px;
    }

    .profile-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px;
    }
}

/* 4K and Ultra-Wide Displays (2560px and above) */
@media (min-width: 2000px) {

    /* Scale containers to fill more width elegantly */
    .header-container,
    .hero-section,
    .stats-container,
    .discover-section,
    .footer-container {
        max-width: 95%;
    }

    /* Bigger Typography */
    html {
        font-size: 18px;
        /* Scales up all rem-based layouts slightly */
    }

    .hero-title {
        font-size: 5.8rem;
        line-height: 1.05;
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: 1.45rem;
        max-width: 800px;
        margin-bottom: 50px;
    }

    /* Ambient Glow Scale Up */
    .glow-bg {
        width: 900px;
        height: 900px;
        filter: blur(180px);
        opacity: 0.22;
    }

    .glow-pink {
        top: -300px;
        right: -100px;
    }

    .glow-purple {
        bottom: -300px;
        left: -100px;
    }

    /* Hero Visual Scale Up */
    .hero-visual {
        height: 600px;
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .floating-card {
        width: 320px;
        border-radius: 28px;
    }

    .floating-card img {
        height: 360px;
    }

    .card-details h4 {
        font-size: 1.3rem;
    }

    .card-details p {
        font-size: 0.95rem;
    }

    .card-left {
        left: 40px;
        top: 0px;
    }

    .card-right {
        right: 40px;
        bottom: 0px;
    }

    .floating-heart {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
        box-shadow: 0 10px 30px rgba(255, 42, 116, 0.5);
    }

    /* Discover Grid expansion */
    .discover-section {
        padding: 140px 24px;
    }

    .section-title {
        font-size: 3.2rem;
    }

    .section-subtitle {
        font-size: 1.3rem;
        max-width: 800px;
        margin-bottom: 80px;
    }

    .profile-grid {
        grid-template-columns: repeat(4, minmax(300px, 420px));
        /* Force 4 columns with centered, elegant card widths */
        justify-content: center;
        gap: 40px;
    }

    .profile-card {
        border-radius: 26px;
    }

    .card-img-wrapper {
        height: 380px;
    }

    .card-body h3 {
        font-size: 1.45rem;
    }

    .tag-pill {
        font-size: 0.85rem;
        padding: 5px 12px;
    }

    /* Large Stats Banner */
    .stat-item h3 {
        font-size: 3.8rem;
    }

    .stat-item p {
        font-size: 1.1rem;
    }

    /* Large Modals for 4K */
    .modal-container {
        max-width: 1100px;
        border-radius: 36px;
    }

    .profile-details-layout {
        min-height: 700px;
    }

    .profile-info-column {
        padding: 60px;
    }

    .name-status-row h2 {
        font-size: 2.8rem;
    }

    .profile-section h3 {
        font-size: 1.15rem;
    }

    .profile-section p {
        font-size: 1.15rem;
    }

    .prompt-title {
        font-size: 0.9rem;
    }

    .prompt-content {
        font-size: 1.25rem;
    }

}

/* ==========================================================================
   MODAL 4: TRUST & SAFETY / POLICIES MODAL STYLING
   ========================================================================== */
.safety-container {
    max-width: 900px;
    height: 640px;
    display: flex;
    flex-direction: column;
}

.safety-layout {
    padding: 52px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.safety-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    margin-top: 10px;
    gap: 4px;
}

.safety-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 10px 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.78rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.safety-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.safety-tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 42, 116, 0.25);
}

.safety-tab-content {
    display: none;
    flex-direction: column;
}

.safety-tab-content.active {
    display: flex;
    animation: stepFadeIn 0.4s ease forwards;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom premium scrollbar for safety content */
.safety-tab-content.active::-webkit-scrollbar {
    width: 6px;
}

.safety-tab-content.active::-webkit-scrollbar-track {
    background: transparent;
}

.safety-tab-content.active::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.safety-tab-content.active::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

.safety-tab-content h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.safety-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Rules Tab Content */
.safety-rules-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rule-item {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 14px;
}

.rule-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-pink);
    opacity: 0.8;
}

.rule-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.rule-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Cyber Safety Tab Content */
.safety-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.safety-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
}

.safety-card i {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.safety-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.safety-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Nudity & Conduct Tab Content */
.policy-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.policy-block {
    padding: 20px;
    border-radius: 14px;
    border-left: 4px solid transparent;
}

.policy-block.warning {
    background: rgba(239, 68, 68, 0.03);
    border-left-color: #ef4444;
    border-top: 1px solid rgba(239, 68, 68, 0.05);
    border-right: 1px solid rgba(239, 68, 68, 0.05);
    border-bottom: 1px solid rgba(239, 68, 68, 0.05);
}

.policy-block.warning .policy-header-row i {
    color: #ef4444;
}

.policy-block.restriction {
    background: rgba(139, 92, 246, 0.03);
    border-left-color: var(--accent-purple);
    border-top: 1px solid rgba(139, 92, 246, 0.05);
    border-right: 1px solid rgba(139, 92, 246, 0.05);
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
}

.policy-block.restriction .policy-header-row i {
    color: var(--accent-purple);
}

.policy-block.action {
    background: rgba(16, 185, 129, 0.03);
    border-left-color: #10b981;
    border-top: 1px solid rgba(16, 185, 129, 0.05);
    border-right: 1px solid rgba(16, 185, 129, 0.05);
    border-bottom: 1px solid rgba(16, 185, 129, 0.05);
}

.policy-block.action .policy-header-row i {
    color: #10b981;
}

.policy-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.policy-header-row i {
    font-size: 1.25rem;
}

.policy-header-row h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.policy-block p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 28px;
}

/* About Us Tab Content */
.about-flex-layout {
    display: flex;
    gap: 30px;
}

.about-text-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    margin-top: 12px;
}

.about-text-content h4:first-of-type {
    margin-top: 0;
}

.about-text-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Footer layout expansion */
.footer-links-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.footer-disclaimer {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    text-align: left;
}

.footer-column {
    min-width: 140px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--accent-pink);
    padding-left: 4px;
}

@media (max-width: 768px) {

    /* Horizontal scrollable underline tab strip — standard mobile pattern */
    .safety-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        padding: 0;
        gap: 0;
        margin-bottom: 20px;
    }

    .safety-tabs::-webkit-scrollbar {
        display: none;
    }

    .safety-tab-btn {
        flex: 1;
        min-width: fit-content;
        flex-direction: column;
        gap: 4px;
        padding: 10px 16px 10px;
        font-size: 0.72rem;
        border-radius: 0;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        transition: color 0.2s ease, border-color 0.2s ease;
    }

    .safety-tab-btn i {
        font-size: 1rem;
    }

    .safety-tab-btn.active {
        background: transparent;
        color: var(--accent-pink);
        border-bottom-color: var(--accent-pink);
        box-shadow: none;
    }

    .safety-tab-btn:hover {
        background: transparent;
        color: var(--text-primary);
    }

    .safety-layout {
        padding: 52px 20px 20px 20px;
    }

    .about-flex-layout {
        flex-direction: column;
    }

    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .discover-section {
        padding: 20px 20px 0px 20px;
    }

    .pagination-container {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .stories-section {
        padding: 30px 20px 50px 20px;
    }

    .safety-container {
        height: 80vh;
    }
}

@media (max-width: 576px) {
    .discover-section {
        padding: 0 12px;
    }

    .pagination-num {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .pagination-btn {
        width: 36px;
        height: 36px;
    }
}

/* On very narrow phones: hide tab labels, show icons only */
@media (max-width: 430px) {
    .safety-tab-btn {
        padding: 10px 14px;
        font-size: 0;
        /* hide text node */
        gap: 0;
    }

    .safety-tab-btn i {
        font-size: 1.1rem;
        /* rem ignores parent font-size: 0 */
    }

    .safety-layout {
        padding: 48px 12px 14px 12px;
    }
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

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

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pagination-num:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.pagination-num.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.pagination-ellipsis {
    color: var(--text-secondary);
    padding: 0 4px;
    font-size: 0.9rem;
    line-height: 42px;
}

#btnLoadMore:hover {
    border-color: rgba(255, 42, 116, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   SUCCESS STORIES SECTION STYLING
   ========================================================================== */
.stories-section {
    padding: 100px 24px;
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-card {
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 42, 116, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 42, 116, 0.25);
    box-shadow: 0 20px 40px -15px rgba(255, 42, 116, 0.15);
}

.story-card:hover::before {
    opacity: 1;
}

.story-avatars {
    display: flex;
    align-items: center;
    position: relative;
    height: 80px;
    margin-bottom: 24px;
    z-index: 1;
}

.story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #05030a;
    object-fit: cover;
    position: absolute;
    box-shadow: var(--shadow-premium);
}

.avatar-left {
    left: 0;
    z-index: 2;
}

.avatar-right {
    left: 40px;
    z-index: 1;
}

.story-match-badge {
    position: absolute;
    left: 115px;
    background: rgba(255, 42, 116, 0.15);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.story-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.story-category {
    font-size: 0.75rem;
    color: var(--accent-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.story-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.story-teaser {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.story-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    border-left: 2px solid var(--accent-pink);
    padding-left: 14px;
    margin-bottom: 24px;
    margin-top: auto;
}

.story-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.story-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Story Detail Modal Styling */
.story-detail-container {
    max-width: 900px;
    overflow-y: hidden;
}

.story-detail-layout {
    height: 650px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-detail-layout-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    height: 100%;
    overflow: hidden;
}

.story-detail-sidebar {
    background: rgba(13, 9, 34, 0.6);
    border-right: 1px solid var(--border-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Security Panel ──────────────────────────────────────────────────────────── */
.sec-card {
    background: rgba(26, 18, 48, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
    transition: border-color .2s;
}

.sec-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
}

.sec-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.sec-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sec-icon-key {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.sec-icon-shield {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.sec-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 3px;
}

.sec-card-sub {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0;
}

.sec-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

@media (max-width: 820px) {
    .sec-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Password eye-toggle */
.sec-pw-wrap {
    position: relative;
}

.pw-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: .95rem;
    transition: color .2s;
}

.pw-eye-btn:hover {
    color: var(--text-primary);
}

/* Password strength */
.pw-strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width .3s, background-color .3s;
}

.pw-strength-label {
    font-size: .72rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.sec-card-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sec-update-btn {
    padding: 10px 24px;
    font-size: .88rem;
}

/* 2FA card specifics */
.sec-card-2fa .sec-card-header {
    margin-bottom: 16px;
}

.sec-2fa-title-block {
    flex: 1;
}

.sec-2fa-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.sec-2fa-badge.badge-active {
    background: rgba(16, 185, 129, .15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, .3);
}

.sec-2fa-badge.badge-inactive {
    background: rgba(100, 116, 139, .12);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, .2);
}

.sec-2fa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}

.sec-2fa-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
}

.sec-2fa-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 42, 116, .1);
    border: 1px solid rgba(255, 42, 116, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
    font-size: .95rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.sec-2fa-info strong {
    font-size: .9rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 3px;
}

.sec-2fa-info p {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.sec-2fa-active-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, .07);
    border: 1px solid rgba(16, 185, 129, .2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 14px;
    color: #10b981;
    font-size: .82rem;
}

/* ── OTP Verification (login flow) ───────────────────────────────────────────── */
.otp-shield-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 42, 116, .15), rgba(139, 92, 246, .15));
    border: 1px solid rgba(139, 92, 246, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-purple);
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 28px 0;
}

.otp-digit {
    width: 50px;
    height: 58px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(26, 18, 48, .8);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    caret-color: var(--accent-pink);
}

.otp-digit:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(255, 42, 116, .15);
}

.otp-digit.otp-filled {
    border-color: var(--accent-purple);
}

.otp-back-row {
    text-align: center;
    margin-top: 18px;
}

.otp-back-row a {
    font-size: .85rem;
    color: var(--text-muted);
}

.otp-back-row a:hover {
    color: var(--accent-pink);
}

/* ─────────────────────────────────────────────────────────────────────────────── */

.story-detail-category {
    font-size: 0.8rem;
    color: var(--accent-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.story-detail-sidebar h2 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.story-detail-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.story-detail-match {
    background: rgba(255, 42, 116, 0.15);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 100px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 40px;
}

.story-detail-avatars-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 20px;
}

.story-detail-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
}

.story-detail-avatar-wrapper img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.story-detail-avatar-wrapper span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.story-detail-connector {
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 0 10px;
    transform: translateY(-10px);
}

.story-detail-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
}

/* Custom premium scrollbar for story body */
.story-detail-body::-webkit-scrollbar {
    width: 6px;
}

.story-detail-body::-webkit-scrollbar-track {
    background: transparent;
}

.story-detail-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.story-detail-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

.story-detail-overview h3,
.story-detail-interview-section h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.story-detail-overview p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.story-detail-interview-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.interview-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.interview-q {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.interview-q i {
    color: var(--accent-purple);
    margin-top: 3px;
}

.interview-a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 28px;
}

@media (max-width: 992px) {
    .story-detail-container {
        overflow-y: auto;
    }

    .story-detail-layout {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .story-detail-layout-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .story-detail-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 30px;
        height: auto;
    }

    .story-detail-body {
        padding: 30px;
        height: auto;
        overflow-y: visible;
    }

    .story-detail-avatars-row {
        margin-top: 30px;
    }
}

/* ─── SUPPORT MODAL ─────────────────────────────────────────────── */
.support-container {
    max-width: 820px;
    height: 680px;
    display: flex;
    flex-direction: column;
}

.support-layout {
    padding: 52px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.support-panel {
    display: none;
    overflow-y: auto;
    flex: 1;
}

.support-panel.active {
    display: block;
}

.support-panel h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact cards */
.support-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.support-contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.support-contact-card i {
    font-size: 1.6rem;
    color: var(--accent-purple);
}

.support-contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
}

.support-contact-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.support-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.support-btn:hover,
.support-btn-active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
}

/* Support form */
.support-form-wrap {
    margin-top: 20px;
}

.support-form-wrap h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    border-color: var(--accent-purple);
}

.support-form select option {
    background: #1a1a2e;
}

.support-submit-btn {
    align-self: flex-start;
    padding: 11px 28px;
    border-radius: 24px;
    border: none;
    background: linear-gradient(135deg, var(--accent-purple), #a855f7);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.support-submit-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Help Center FAQ */
.help-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--accent-purple);
}

.faq-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    font-size: 0.75rem;
    color: var(--accent-purple);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary i {
    transform: rotate(90deg);
}

.faq-item p {
    padding: 0 18px 14px 38px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item p a {
    color: var(--accent-purple);
    text-decoration: none;
}

@media (max-width: 640px) {
    .support-container {
        height: auto;
    }

    .support-layout {
        padding: 52px 20px 24px;
    }

    .support-contact-grid {
        grid-template-columns: 1fr;
    }

    .support-form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GLOBAL CHAT SECTION STYLING
   ========================================================================== */
.global-chat-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
}

.global-chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* Ticker Styles */
.global-chat-ticker-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 16px;
    overflow: hidden;
    gap: 16px;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255, 42, 116, 0.3);
}

.global-chat-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.ticker-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* Horizontal moving ticker messages */
.ticker-track {
    display: flex;
    gap: 40px;
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    animation: tickerMarquee 25s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.ticker-sender {
    font-weight: 600;
    color: var(--accent-pink);
}

.ticker-body {
    color: var(--text-primary);
}

@keyframes tickerMarquee {
    0% {
        transform: translate3d(100%, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Chat Messages Area */
.global-chat-messages {
    height: 380px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(7, 5, 15, 0.4);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Messages */
.global-msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 80%;
    animation: msgFadeIn 0.3s ease forwards;
}

.global-msg.msg-self {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.global-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.global-msg-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.global-msg-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.global-msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.global-msg.msg-self .global-msg-meta {
    flex-direction: row-reverse;
}

.global-msg-sender {
    font-weight: 600;
    color: var(--text-primary);
}

.global-msg-time {
    color: var(--text-muted);
}

.global-msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 0 16px 16px 16px;
    color: var(--text-primary);
    font-size: 0.92rem;
    word-break: break-word;
}

.global-msg.msg-self .global-msg-bubble {
    background: var(--gradient-primary);
    border: none;
    border-radius: 16px 0 16px 16px;
    box-shadow: 0 2px 12px rgba(255, 42, 116, 0.2);
}

@keyframes msgFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* Chat Input Form */
.global-chat-input-form {
    display: flex;
    gap: 12px;
}

.global-chat-input-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.global-chat-input-form input:focus {
    border-color: rgba(255, 42, 116, 0.45);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 42, 116, 0.1);
}

.global-chat-input-form .btn-send {
    padding: 0 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .global-chat-container {
        padding: 16px;
    }

    .global-chat-messages {
        height: 300px;
    }

    .global-chat-input-form {
        flex-direction: column;
    }

    .global-chat-input-form .btn-send {
        width: 100%;
        padding: 14px;
    }
}