/* ==========================================================================
   KreaSpace Worldwide Standard Luxury Glassmorphism CSS
   ========================================================================== */
:root {
    --bg-gradient: radial-gradient(circle at 20% 20%, #1e1b4b 0%, #0f172a 50%, #020617 100%);
    --primary-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
    --primary-glow: 0 10px 30px rgba(236, 72, 153, 0.35);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
    --glass-border-focus: 1px solid rgba(236, 72, 153, 0.6);
    --glass-blur: blur(16px);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --card-radius: 24px;
    --btn-radius: 16px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 95px;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Ambient Glow Elements */
.ambient-glow {
    position: fixed;
    top: -150px;
    right: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, rgba(139, 92, 246, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.ambient-glow-2 {
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

/* Master Layout Container */
.glass-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Top App Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 24px 0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--primary-glow);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.user-badge-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

/* Modern Typography */
h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.section-title {
    font-size: 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons & Inputs */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: var(--btn-radius);
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--primary-glow);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), opacity 0.2s;
    text-decoration: none;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 22px;
    border-radius: var(--btn-radius);
    background: rgba(255, 255, 255, 0.08);
    border: var(--glass-border);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-pill {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pill:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.glass-input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: var(--glass-border);
    border-radius: var(--btn-radius);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.glass-input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

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

/* Landing Page Luxury Styling */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #f472b6;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: var(--glass-border);
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Media Item & Feed */
.media-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    background: #020617;
    margin-bottom: 18px;
}

.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease-out);
}

.glass-card:hover .media-image {
    transform: scale(1.03);
}

/* 18+ Blur Mode Protection */
.blurred-content {
    filter: blur(28px) brightness(0.6);
    transform: scale(1.15);
    pointer-events: none;
}

.gated-18-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    z-index: 5;
}

.tag-18 {
    display: inline-block;
    padding: 4px 12px;
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Bottom Tab Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-link.active {
    color: #fff;
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 20px;
}

/* Seamless SPA Page Transitions */
.page-container {
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    will-change: opacity, transform;
}

/* Floating Toast Notification */
#toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: rgba(15, 23, 42, 0.9);
    border: var(--glass-border);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 10px;
}

#toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tab Toggle */
.tab-header {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 5px;
    margin-bottom: 24px;
    border: var(--glass-border);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .hero-title { font-size: 34px; }
    .glass-container { padding: 14px; }
    .glass-card { padding: 18px; }
}
