/* Gönül Köprüsü — Deniz Sis Theme (No Black, Gold, or Pure White) */

:root {
    --cream: #FDFBF7;
    --cream-light: #FDFBF7;
    --beige: #E8F0ED;
    --beige-dark: #D4E5DF;
    --rose: #799D98;
    --rose-deep: #4A7C77;
    --sage: #9BC4B8;
    --lavender: #A8C8BE;
    --text-primary: #3D5550;
    --text-secondary: #4A7C77;
    --text-muted: #7A948C;
    --accent-coral: #5A8F88;
    --accent-teal: #4A7C77;
    --shadow: rgba(61, 85, 80, 0.1);
    --border: #C8DAD5;
}

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

body {
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    background: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
}

.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-body main {
    flex: 1;
}

a { color: var(--rose-deep); text-decoration: none; }
a:hover { color: var(--accent-coral); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--cream-light);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rose-deep);
    justify-self: start;
}

.logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg {
    width: 34px;
    height: 34px;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rose-deep);
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.01em;
    max-width: 160px;
    line-height: 1.2;
}

.logo-header .logo-tagline {
    display: block;
}

@media (max-width: 1100px) {
    .logo-header .logo-tagline {
        display: none;
    }
}

.nav-center {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-self: center;
}

.nav-center a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-center a:hover {
    color: var(--rose-deep);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-self: end;
}

.nav-auth-link {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 4px;
}

.nav-logout { display: inline; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    justify-self: end;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rose-deep);
    border-radius: 2px;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px 20px;
    background: var(--cream-light);
    border-bottom: 1px solid var(--border);
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 9px 22px !important;
    font-size: 0.88rem !important;
    border-radius: 24px !important;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--rose);
    color: var(--cream-light);
    box-shadow: 0 4px 14px rgba(74, 124, 119, 0.25);
}

.btn-primary:hover {
    background: var(--rose-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--rose-deep);
    color: var(--rose-deep);
}

.btn-outline:hover { background: var(--beige); }

/* ===== HERO PHOTO (MOCKUP) ===== */
.hero-photo {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-photo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(253, 251, 247, 0.88) 0%,
        rgba(253, 251, 247, 0.55) 45%,
        rgba(253, 251, 247, 0.15) 100%
    );
}

.hero-photo-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 80px 24px 72px;
    min-height: 480px;
}

.hero-photo-content {
    max-width: 480px;
}

.hero-photo-content h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--rose-deep);
    margin-bottom: 12px;
}

.hero-heart-divider {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero-heart-divider svg {
    color: var(--rose);
    flex-shrink: 0;
}

.btn-hero-mobile {
    display: none;
    padding: 14px 32px !important;
    border-radius: 28px !important;
}

/* Hero Features Strip */
.hero-features {
    padding: 0 0 56px;
    margin-top: -32px;
    position: relative;
    z-index: 5;
}

.hero-features-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 28px;
    box-shadow: 0 6px 24px var(--shadow);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.hero-features-banner-icon {
    color: var(--rose-deep);
    flex-shrink: 0;
    display: flex;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 24px;
    background: var(--beige);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px var(--shadow);
}

.hero-feature-icon {
    color: var(--rose-deep);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--cream-light);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.hero-feature-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--rose-deep);
    margin-bottom: 4px;
}

.hero-feature-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* About Section */
.about-section {
    padding: 64px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.about-card {
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.about-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--rose-deep);
    font-weight: 700;
}

.about-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin: -28px 0 36px;
    font-size: 0.95rem;
}

/* Security Section */
.security-section {
    padding: 64px 0;
    background: linear-gradient(180deg, var(--beige) 0%, var(--cream) 100%);
}

.security-section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 36px;
    color: var(--text-primary);
}

.security-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.security-card {
    background: var(--cream-light);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px var(--shadow);
}

.security-card h3 {
    font-size: 1rem;
    color: var(--rose-deep);
    margin-bottom: 10px;
}

.security-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .nav-center,
    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-photo-inner {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .hero-features-grid {
        grid-template-columns: 1fr;
    }

    .about-grid { grid-template-columns: 1fr; }
    .security-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 240px;
        max-height: 280px;
    }

    .auth-visual-text {
        bottom: 24px;
        left: 24px;
        right: 24px;
    }

    .auth-visual-text h2 {
        font-size: 1.5rem;
    }

    .auth-form-wrap {
        padding: 32px 20px 48px;
    }
}

@media (max-width: 768px) {
    .btn-hero-mobile {
        display: inline-block;
    }

    .hero-photo {
        min-height: 420px;
    }

    .hero-photo-inner {
        min-height: 420px;
    }

    .hero-features-banner {
        flex-direction: column;
        padding: 14px 20px;
        font-size: 0.88rem;
    }

    .about-cards { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonials {
    padding: 64px 0;
    background: linear-gradient(180deg, var(--beige) 0%, var(--beige-dark) 100%);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--cream-light);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px var(--shadow);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.testimonial-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rose);
    flex-shrink: 0;
}

.testimonial-card .couple-names {
    font-weight: 600;
    color: var(--rose-deep);
    margin-bottom: 0;
}

.testimonial-card p { color: var(--text-secondary); font-style: italic; }

/* Auth Pages */
.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px);
}

.auth-visual {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

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

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(61, 85, 80, 0.15) 0%,
        rgba(61, 85, 80, 0.55) 100%
    );
}

.auth-visual-text {
    position: absolute;
    bottom: 48px;
    left: 40px;
    right: 40px;
    color: var(--cream-light);
    z-index: 2;
}

.auth-visual-text h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(46, 64, 57, 0.3);
}

.auth-visual-text p {
    font-size: 1rem;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(46, 64, 57, 0.25);
}

.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: var(--cream);
}

.auth-form-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: -16px 0 24px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-switch a {
    font-weight: 600;
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

.form-error {
    color: var(--rose-deep);
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
}

/* Forms */
.form-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--cream-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 1px solid var(--border);
}

.form-card-wide {
    max-width: 480px;
}

.form-card h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--cream);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(110, 173, 160, 0.35);
}

.form-group input[readonly] {
    background: var(--beige);
    color: var(--text-muted);
    cursor: not-allowed;
}

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

.location-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--beige);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Post Feed */
.feed-container { max-width: 600px; margin: 0 auto; padding: 0 16px; }

.feed-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.feed-create-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--cream-light);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.feed-create-btn:hover {
    border-color: var(--teal);
    background: var(--cream);
}

.feed-create-btn--story {
    background: linear-gradient(135deg, rgba(106, 173, 159, 0.12), rgba(74, 124, 119, 0.08));
}

.feed-create-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rose-deep);
    color: var(--cream-light);
    font-size: 1rem;
    line-height: 1;
}

body.ig-compose-open { overflow: hidden; }

.ig-compose-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ig-compose-modal[hidden] { display: none; }

.ig-compose-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ig-compose-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--cream-light);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: ig-compose-slide 0.25s ease;
}

@keyframes ig-compose-slide {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.ig-compose-header {
    display: grid;
    grid-template-columns: 40px 1fr 80px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.ig-compose-header h2 {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.ig-compose-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
}

.ig-compose-submit {
    justify-self: end;
    background: none;
    border: none;
    color: var(--rose-deep);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.ig-compose-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ig-compose-body {
    overflow-y: auto;
    padding: 0;
}

.ig-compose-preview {
    aspect-ratio: 1;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ig-compose-preview img,
.ig-compose-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-compose-preview--story {
    aspect-ratio: 9 / 16;
    max-height: 55vh;
}

.ig-compose-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    text-align: center;
}

.ig-compose-picker input {
    display: none;
}

.ig-compose-picker-icon {
    font-size: 2rem;
}

.ig-compose-picker small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ig-compose-caption {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    padding: 14px 16px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--cream-light);
    color: var(--text-primary);
}

.ig-compose-caption:focus {
    outline: none;
}

.feed-title {
    margin-bottom: 24px;
    text-align: center;
}

.feed-empty {
    text-align: center;
    color: var(--text-muted);
}

/* Stories — Instagram-style */
.stories-section {
    margin: 0 -16px 20px;
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--border);
    background: var(--cream-light);
}

.stories-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 16px 4px;
    scrollbar-width: none;
}

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

.story-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 72px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.story-item--own {
    cursor: default;
}

.story-own-wrap {
    position: relative;
    width: 68px;
    height: 68px;
}

.story-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: none;
    border: none;
    cursor: pointer;
}

.story-ring--unseen {
    background: linear-gradient(225deg, #6EAD9F 0%, #4A7C77 35%, #799D98 65%, #5A8F88 100%);
}

.story-ring--seen {
    background: var(--border);
    padding: 2px;
}

.story-ring--own-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 2px;
    background: var(--border);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--cream);
    border: 2px solid var(--cream-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--teal);
    font-size: 1rem;
}

.story-ring--seen .story-avatar {
    border-color: var(--cream-light);
}

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

.story-add-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rose-deep);
    color: var(--cream-light);
    border: 2px solid var(--cream-light);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.story-username {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-error {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 0 16px;
}

/* Instagram-style full-screen story viewer */
body.ig-story-open { overflow: hidden; }

.ig-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #2A3532;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-story-viewer[hidden] { display: none; }

.ig-story-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 100%;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #1E2826;
}

.ig-story-progress {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 4px;
}

.ig-story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(253, 251, 247, 0.35);
    border-radius: 2px;
    overflow: hidden;
}

.ig-story-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--cream-light);
    border-radius: 2px;
    transition: width 0.05s linear;
}

.ig-story-header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
}

.ig-story-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream-light);
    text-decoration: none;
    min-width: 0;
}

.ig-story-user:hover { color: var(--cream-light); opacity: 0.9; }

.ig-story-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--rose-deep);
    border: 1px solid rgba(253, 251, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ig-story-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-story-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.ig-story-user-meta strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.ig-story-user-meta small {
    font-size: 0.72rem;
    opacity: 0.75;
}

.ig-story-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ig-story-delete {
    background: none;
    border: none;
    color: var(--cream-light);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.9;
}

.ig-story-delete[hidden] { display: none; }

.ig-story-close {
    background: none;
    border: none;
    color: var(--cream-light);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.9;
}

.ig-story-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
}

.ig-story-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E2826;
    overflow: hidden;
}

.ig-story-media img,
.ig-story-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-story-tap {
    position: absolute;
    top: 60px;
    bottom: 0;
    z-index: 5;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.ig-story-tap--prev { left: 0; width: 35%; }
.ig-story-tap--next { right: 0; width: 65%; }

@media (min-width: 500px) {
    .ig-story-frame {
        height: 92dvh;
        max-height: 820px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    }
}

.post-card {
    background: var(--cream-light);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--beige-dark);
    box-shadow: 0 2px 12px var(--shadow);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--beige-dark);
    background: var(--cream-light);
}

.post-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.post-header-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--beige);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--rose-deep);
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.post-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.25s ease;
}

.post-card--liked .post-header-avatar {
    border-color: var(--rose-deep);
    box-shadow: 0 0 0 2px rgba(201, 123, 132, 0.3);
    background: var(--rose-deep);
}

.post-card--liked .post-header-avatar span {
    color: var(--cream-light);
}

.post-card--liked .post-header-avatar img {
    filter: saturate(1.35) sepia(0.15);
}

.post-header-end {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.post-menu {
    position: relative;
}

.post-menu-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 6px;
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px var(--shadow);
    z-index: 10;
    overflow: hidden;
}

.post-menu-dropdown[hidden] { display: none; }

.post-menu-delete {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    text-align: left;
    color: #c0392b;
    font-weight: 600;
    cursor: pointer;
}

.post-menu-delete:hover {
    background: var(--beige);
}

.post-username {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.post-username:hover {
    color: var(--teal);
    text-decoration: underline;
}

.user-profile-card {
    padding: 28px;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.user-profile-meta {
    flex: 1;
}

.user-profile-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.user-profile-location {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.user-profile-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.user-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--cream-light);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}

.profile-action-btn:hover {
    background: var(--beige);
    box-shadow: 0 4px 14px var(--shadow);
    transform: translateY(-1px);
}

.profile-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-action-icon svg {
    width: 18px;
    height: 18px;
}

.profile-action-icon--messages {
    background: linear-gradient(135deg, #4a8fc7 0%, #7ec0f0 100%);
    color: #fff;
    animation: igNavBounce 2.8s ease-in-out infinite;
}

.profile-action-icon--report {
    background: linear-gradient(135deg, #e85d5d 0%, #ff8a7a 100%);
    color: #fff;
    animation: igNavPulse 2.4s ease-in-out infinite;
}

.profile-action-btn--report:hover {
    background: #fff0ee;
    border-color: #e85d5d;
    color: #b83a3a;
}

.profile-report-dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: 420px;
    width: calc(100% - 32px);
    box-shadow: 0 16px 48px var(--shadow);
    background: var(--cream-light);
}

.profile-report-dialog::backdrop {
    background: rgba(61, 85, 80, 0.35);
}

.profile-report-form {
    padding: 20px;
}

.profile-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.profile-report-header h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.profile-report-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.profile-report-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.profile-report-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    background: var(--cream);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-report-input--error {
    border-color: #e85d5d;
}

.profile-report-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.profile-report-submit {
    background: #e85d5d;
    border-color: #e85d5d;
}

.profile-report-submit:hover {
    background: #d04a4a;
}

.user-profile-posts-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.user-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.user-profile-grid-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--beige);
}

.user-profile-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.location-link:hover {
    color: var(--rose-deep);
}

.location-link.post-location {
    background: var(--beige);
    padding: 4px 12px;
    border-radius: 8px;
}

.location-link.post-location:hover {
    background: var(--beige-dark);
}

.location-users-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.location-users-header {
    margin-bottom: 28px;
    text-align: center;
}

.location-users-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.location-users-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.location-users-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.location-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: var(--cream);
    border: 1px solid var(--beige-dark);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.location-user-card:hover {
    border-color: var(--rose-soft);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.location-user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rose-deep);
    overflow: hidden;
}

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

.location-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    word-break: break-word;
}

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

.post-image {
    width: calc(100% - 56px);
    max-width: 520px;
    margin: 16px auto;
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--beige), var(--beige-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
    border: 1px solid var(--beige-dark);
    border-radius: 14px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.post-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--beige-dark);
    background: var(--cream-light);
}

.post-footer .post-actions {
    padding: 0;
    border: none;
    background: transparent;
    flex-shrink: 0;
    margin-left: auto;
}

.post-footer:not(:has(.post-caption)) .post-actions {
    width: 100%;
    justify-content: flex-end;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 6px 0 6px 4px;
    margin-left: auto;
    transition: color 0.2s ease;
}

.like-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform-origin: center;
}

.like-btn--active,
.like-btn--active .like-icon {
    color: var(--rose-deep);
}

.like-btn--active .like-icon {
    filter: drop-shadow(0 0 6px rgba(201, 123, 132, 0.45));
}

.like-btn--pop .like-icon {
    animation: like-heart-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.like-btn--unpop .like-icon {
    animation: like-heart-unpop 0.3s ease;
}

@keyframes like-heart-pop {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(0.85);
    }
    45% {
        transform: scale(1.45);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes like-heart-unpop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.75);
    }
    100% {
        transform: scale(1);
    }
}

.like-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: transform 0.25s ease;
}

.like-btn--pop .like-count {
    animation: like-count-bump 0.45s ease;
}

@keyframes like-count-bump {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.post-caption {
    flex: 1;
    min-width: 0;
    padding: 2px 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.post-footer .post-caption {
    border: none;
    margin: 0;
}

.post-caption-user {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-right: 6px;
}

.post-caption-user:hover {
    text-decoration: underline;
}

.profile-posts-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.profile-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.profile-posts-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.like-btn:hover:not(.like-btn--active) {
    color: var(--accent-coral);
}

.like-btn:hover .like-icon {
    transform: scale(1.08);
    transition: transform 0.15s ease;
}

/* Profile */
.profile-card {
    max-width: 600px;
    margin: 32px auto;
    background: var(--cream-light);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px var(--shadow);
}

.profile-page {
    padding-top: 24px;
    padding-bottom: 48px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--cream-light);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.profile-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--beige), var(--rose));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-light);
    font-size: 2rem;
    overflow: hidden;
    border: none;
    padding: 0;
}

.profile-photo--story {
    cursor: pointer;
    background: transparent;
}

.profile-photo--story .story-ring--profile {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 3px;
}

.profile-photo--story .story-avatar {
    width: 100%;
    height: 100%;
    font-size: 2rem;
}

.profile-story-hint {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--teal);
}

.profile-success {
    text-align: center;
    color: var(--teal);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.profile-photo-change--loading {
    opacity: 0.6;
    pointer-events: none;
}

.profile-photo-change--loading span::after {
    content: '…';
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-initial {
    font-weight: 700;
}

.profile-photo-form {
    margin: 0;
}

.profile-photo-change {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rose-deep);
    color: var(--cream-light);
    border: 2px solid var(--cream-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.profile-photo-change input {
    display: none;
}

.profile-photo-error {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

.profile-header-meta {
    flex: 1;
    min-width: 0;
}

.profile-username {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    margin: 0 0 4px;
    color: var(--text-primary);
}

.profile-location-line {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-settings {
    margin-bottom: 20px;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.profile-settings-toggle {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.profile-settings-toggle::-webkit-details-marker {
    display: none;
}

.profile-settings-toggle::before {
    content: '▸ ';
    color: var(--teal);
}

.profile-settings[open] .profile-settings-toggle::before {
    content: '▾ ';
}

.profile-settings-body {
    padding: 0 18px 18px;
    border-top: 1px solid var(--border);
}

.profile-settings-body .form-group:first-child {
    margin-top: 16px;
}

.hidden-field {
    position: relative;
}

.hidden-field::after {
    content: '🔒';
    position: absolute;
    right: 12px;
    top: 38px;
    font-size: 0.85rem;
}

/* Premium Page */
.premium-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

.premium-hero {
    text-align: center;
    margin-bottom: 32px;
}

.premium-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.premium-hero-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.premium-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 28px;
}

.premium-status--active {
    background: linear-gradient(135deg, rgba(106, 173, 159, 0.15), rgba(74, 124, 119, 0.08));
    border: 1px solid var(--teal);
}

.premium-status--inactive {
    background: var(--beige);
    border: 1px solid var(--border);
    justify-content: center;
    text-align: center;
}

.premium-status--trial {
    background: linear-gradient(135deg, rgba(201, 123, 132, 0.12), rgba(106, 173, 159, 0.1));
    border: 1px solid var(--rose-soft);
}

.premium-feed-banner--trial {
    background: linear-gradient(135deg, rgba(106, 173, 159, 0.14), rgba(74, 124, 119, 0.08));
    border-color: var(--teal);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.premium-status-icon {
    font-size: 1.75rem;
    color: var(--teal);
}

.premium-status p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.premium-features {
    margin-bottom: 36px;
    text-align: center;
}

.premium-features h2 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.premium-features-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding: 0;
    margin: 0;
}

.premium-features-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.premium-features-list li::before {
    content: '✓ ';
    color: var(--teal);
    font-weight: 700;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.premium-card {
    position: relative;
    background: var(--cream-light);
    border-radius: 20px;
    padding: 28px 24px 24px;
    text-align: center;
    border: 2px solid var(--border);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    opacity: 0.9;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px var(--shadow);
}

.premium-card--pro {
    border-color: rgba(0, 168, 181, 0.45);
    background: linear-gradient(165deg, #f0fcfd 0%, #e6f7f8 45%, var(--cream-light) 100%);
}

.premium-card--pro::before {
    background: linear-gradient(90deg, #00c9d4, #00a8b5, #4ecdc4);
}

.premium-card--pro:hover {
    border-color: #00a8b5;
    box-shadow: 0 14px 36px rgba(0, 168, 181, 0.22);
}

.premium-card--gold {
    border-color: rgba(212, 160, 23, 0.5);
    background: linear-gradient(165deg, #fff9e8 0%, #fff3cc 42%, var(--cream-light) 100%);
}

.premium-card--gold::before {
    background: linear-gradient(90deg, #f5c842, #d4a017, #ffb347);
}

.premium-card--gold:hover {
    border-color: #d4a017;
    box-shadow: 0 14px 36px rgba(212, 160, 23, 0.24);
}

.premium-card--platinum {
    border-color: rgba(124, 92, 191, 0.5);
    background: linear-gradient(165deg, #f5f0ff 0%, #ebe4ff 42%, var(--cream-light) 100%);
}

.premium-card--platinum::before {
    background: linear-gradient(90deg, #9b7fd4, #7c5cbf, #b8a0e8);
}

.premium-card--platinum:hover {
    border-color: #7c5cbf;
    box-shadow: 0 14px 36px rgba(124, 92, 191, 0.24);
}

.premium-card--featured {
    border-width: 2px;
}

.premium-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    position: relative;
}

.premium-card-icon--pro {
    color: #00a8b5;
    background: radial-gradient(circle at 35% 30%, rgba(0, 201, 212, 0.35), rgba(0, 168, 181, 0.12) 55%, transparent 70%);
    animation: premium-icon-glow-pro 2.4s ease-in-out infinite;
}

.premium-card-icon--gold {
    color: #c9920a;
    background: radial-gradient(circle at 35% 30%, rgba(245, 200, 66, 0.45), rgba(212, 160, 23, 0.14) 55%, transparent 70%);
    animation: premium-icon-glow-gold 2.6s ease-in-out infinite;
}

.premium-card-icon--platinum {
    color: #7c5cbf;
    background: radial-gradient(circle at 35% 30%, rgba(184, 160, 232, 0.45), rgba(124, 92, 191, 0.14) 55%, transparent 70%);
    animation: premium-icon-glow-platinum 2.2s ease-in-out infinite;
}

.premium-icon-svg {
    width: 44px;
    height: 44px;
}

.premium-card-icon--pro .premium-icon-svg {
    animation: premium-icon-bolt 1.8s ease-in-out infinite;
}

.premium-card-icon--gold .premium-icon-svg {
    animation: premium-icon-star-spin 4s linear infinite;
    transform-origin: center;
}

.premium-card-icon--platinum .premium-icon-svg {
    animation: premium-icon-sparkle-pulse 2s ease-in-out infinite;
}

.premium-icon-sparkle {
    animation: premium-sparkle-blink 1.4s ease-in-out infinite;
}

.premium-icon-sparkle--delay {
    animation-delay: 0.7s;
}

@keyframes premium-icon-glow-pro {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 181, 0.25); }
    50% { box-shadow: 0 0 0 12px rgba(0, 168, 181, 0); }
}

@keyframes premium-icon-glow-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.3); }
    50% { box-shadow: 0 0 0 14px rgba(212, 160, 23, 0); }
}

@keyframes premium-icon-glow-platinum {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 191, 0.3); }
    50% { box-shadow: 0 0 0 14px rgba(124, 92, 191, 0); }
}

@keyframes premium-icon-bolt {
    0%, 100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-3px) scale(1.06); }
    70% { transform: translateY(1px) scale(0.98); }
}

@keyframes premium-icon-star-spin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(6deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-6deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes premium-icon-sparkle-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(124, 92, 191, 0)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(124, 92, 191, 0.55)); }
}

@keyframes premium-sparkle-blink {
    0%, 100% { opacity: 0.35; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.premium-card--pro h3 { color: #007a85; }
.premium-card--pro .price { color: #00a8b5; }

.premium-card--gold h3 { color: #9a7209; }
.premium-card--gold .price { color: #c9920a; }

.premium-card--platinum h3 { color: #5f4596; }
.premium-card--platinum .price { color: #7c5cbf; }

.premium-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rose-deep);
    color: var(--cream-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.premium-card h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.premium-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rose-deep);
    margin: 8px 0;
}

.premium-card .price small {
    font-size: 1rem;
    font-weight: 600;
}

.premium-card .duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.premium-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    flex: 1;
}

.premium-card-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.premium-card-features li:last-child {
    border-bottom: none;
}

.premium-card-features li::before {
    content: '• ';
    color: var(--teal);
}

.premium-buy-form {
    margin-top: auto;
}

.premium-app-notice {
    margin-bottom: 32px;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(106, 173, 159, 0.12), rgba(74, 124, 119, 0.08));
    border: 1px solid var(--teal);
    border-radius: 14px;
    text-align: center;
}

.premium-app-notice h2 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.premium-app-notice p {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.premium-app-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.premium-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.premium-card-app-only {
    margin: 0;
    padding: 10px 12px;
    background: var(--beige);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
    text-align: center;
}

.nav-auth-link--premium {
    color: var(--rose-deep);
    font-weight: 600;
}

.feed-create-btn--premium {
    text-decoration: none;
    background: linear-gradient(135deg, rgba(201, 123, 132, 0.1), rgba(74, 124, 119, 0.08));
}

.premium-feed-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(201, 123, 132, 0.12), rgba(106, 173, 159, 0.1));
    border: 1px solid var(--border);
    border-radius: 12px;
}

.premium-feed-banner p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-primary);
}

/* ===== ADMIN PANEL — RIGHT-SIDE MENU ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-content {
    flex: 1;
    padding: 32px;
    margin-right: 280px;
    background: var(--cream);
}

.admin-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream-light);
    border-left: 1px solid var(--border);
    padding: 24px 0;
    z-index: 200;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.admin-sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.admin-logo {
    margin-bottom: 10px;
}

.admin-logo .logo-mark {
    width: 32px;
    height: 32px;
}

.admin-logo .logo-name {
    font-size: 0.95rem;
}

.admin-panel-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 52px;
}

.admin-sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-sidebar-link {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-sidebar-logout {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--teal);
    cursor: pointer;
    text-align: left;
}

.admin-login-brand {
    margin-bottom: 20px;
}

.admin-nav { list-style: none; }

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: var(--beige);
    color: var(--rose-deep);
    border-right-color: var(--rose);
}

.admin-nav li a .icon { font-size: 1.2rem; }

.admin-page-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--cream-light);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rose-deep);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cream-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--beige);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

.admin-table tr:hover td { background: var(--beige); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-pending { background: #E0E8E5; color: #6E8A82; }
.badge-resolved { background: #D4E8E0; color: #5A7A6E; }
.badge-banned { background: #E8D8D4; color: #8B6560; }

.menu-toggle {
    display: none;
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 300;
    background: var(--rose);
    color: var(--cream-light);
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .admin-content { margin-right: 0; }
    .admin-sidebar { transform: translateX(100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .menu-toggle { display: block; }
    .form-row, .location-box { grid-template-columns: 1fr; }

    .location-box .loc-district-wrap {
        grid-column: 1 / -1;
    }
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success { background: #D4E8E0; color: #4A6A5E; }
.alert-error { background: #E8D8D4; color: #6A504A; }

/* ===== SITE FOOTER — DENIZ SIS ===== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, var(--beige) 50%, var(--beige-dark) 100%);
    margin-top: 0;
    padding: 0 0 12px;
}

.footer-wave {
    height: 48px;
    background: linear-gradient(180deg, transparent 0%, var(--beige) 100%);
    margin-top: -1px;
}

.footer-cta {
    background: linear-gradient(135deg, var(--sage) 0%, var(--rose-deep) 60%, var(--accent-teal) 100%);
    padding: 44px 0;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(245, 250, 248, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-cta-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(245, 250, 248, 0.75);
    margin-bottom: 8px;
}

.footer-cta-text h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--cream-light);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.footer-cta-text p {
    color: rgba(245, 250, 248, 0.88);
    font-size: 0.95rem;
    max-width: 480px;
}

.footer-cta-btn {
    background: var(--cream-light) !important;
    color: var(--rose-deep) !important;
    border: none;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(46, 64, 57, 0.2);
    padding: 14px 32px !important;
    border-radius: 28px !important;
}

.footer-cta-btn:hover {
    background: var(--cream) !important;
    transform: translateY(-2px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 56px 0 40px;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-brand .footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    max-width: 340px;
    margin-bottom: 24px;
}

.footer-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.footer-stat strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rose-deep);
    line-height: 1.2;
}

.footer-stat span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-col h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rose-deep);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 11px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--rose-deep);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-icon {
    width: 16px;
    height: 16px;
    fill: var(--rose);
    flex-shrink: 0;
}

.footer-apps-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0 10px;
}

.footer-app-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-badge {
    display: inline-block;
    padding: 7px 14px;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cream-light);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: var(--rose-deep);
    transition: fill 0.2s;
}

.social-link:hover {
    background: var(--rose);
    border-color: var(--rose);
    transform: translateY(-2px);
}

.social-link:hover svg {
    fill: var(--cream-light);
}

.footer-theme-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 0 8px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-leaf {
    opacity: 0.5;
    font-size: 0.9rem;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 22px 0;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-legal a {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.footer-legal a:hover {
    color: var(--rose-deep);
}

.footer-made {
    color: var(--rose-deep) !important;
    font-size: 0.82rem !important;
    text-align: right;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-made {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Messages */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--rose-deep);
    color: var(--cream);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.messages-page,
.chat-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.messages-page-header {
    margin-bottom: 24px;
}

.messages-page-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.messages-page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.conversation-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.conversation-item:hover {
    border-color: var(--rose);
    box-shadow: 0 4px 14px var(--shadow);
}

.conversation-item--unread {
    border-color: var(--rose);
    background: var(--beige);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--rose-deep);
    overflow: hidden;
    flex-shrink: 0;
}

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

.conversation-body {
    flex: 1;
    min-width: 0;
}

.conversation-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.conversation-name {
    font-weight: 600;
    color: var(--text-primary);
}

.conversation-time {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.conversation-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item--unread .conversation-preview {
    font-weight: 600;
    color: var(--text-primary);
}

.conversation-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--rose-deep);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.messages-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--beige);
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.messages-empty p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.messages-empty-hint {
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    margin-bottom: 20px !important;
}

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

.chat-back {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--rose-deep);
    padding: 4px 8px;
}

.chat-partner {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.chat-partner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--rose-deep);
    overflow: hidden;
    flex-shrink: 0;
}

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

.chat-partner-info {
    min-width: 0;
}

.chat-partner-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-partner-location {
    display: block;
    font-size: 0.85rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 320px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px 4px 16px;
    margin-bottom: 16px;
}

.chat-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    word-break: break-word;
}

.chat-bubble--sent {
    align-self: flex-end;
    background: var(--rose-deep);
    color: var(--cream);
    border-bottom-right-radius: 4px;
}

.chat-bubble--received {
    align-self: flex-start;
    background: var(--beige);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-bubble-text {
    margin-bottom: 4px;
    white-space: pre-wrap;
}

.chat-bubble-time {
    display: block;
    font-size: 0.72rem;
    opacity: 0.75;
}

.chat-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 16px;
}

.chat-compose {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    background: var(--cream-light);
    color: var(--text-primary);
}

.chat-input:focus {
    outline: none;
    border-color: var(--rose);
}

.chat-input--error {
    border-color: #c45c5c;
}

.chat-send {
    flex-shrink: 0;
}

.chat-error {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .chat-bubble {
        max-width: 90%;
    }

    .chat-compose {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-send {
        width: 100%;
    }
}

/* Instagram-style app shell + sidebar */
.app-shell .site-header,
.app-shell .site-footer {
    display: none;
}

.app-shell main {
    padding: 0;
}

.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.app-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--ig-sidebar-width, 245px);
    padding: 24px 20px 48px;
    display: flex;
    justify-content: center;
}

.app-main > * {
    width: 100%;
    max-width: 630px;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: var(--ig-sidebar-width, 245px);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 12px 12px 24px;
    background: var(--cream-light);
    border-right: 1px solid var(--border);
}

.app-sidebar-logo {
    display: flex;
    align-items: center;
    padding: 12px 12px 20px;
    margin-bottom: 4px;
    color: var(--rose-deep);
}

.app-sidebar-logo .logo-mark {
    width: 32px;
    height: 32px;
}

.app-sidebar-logo .logo-text {
    font-size: 1.35rem;
}

.app-sidebar-logo .logo-tagline {
    display: none;
}

.app-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.app-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.app-sidebar-logout {
    margin: 0;
}

.app-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px 12px 14px;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    transition: background 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.app-nav-item:hover {
    background: var(--beige);
}

.app-nav-item--active {
    font-weight: 700;
}

.app-nav-item--active .app-nav-icon {
    transform: scale(1.05);
}

.app-nav-item--sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.app-nav-item--button:hover {
    background: #f5e8e8;
    color: #a05050;
}

.app-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.app-nav-icon svg {
    width: 24px;
    height: 24px;
}

.app-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}

.app-nav-item--active .app-nav-avatar {
    border-color: var(--rose-deep);
}

.app-nav-icon--feed {
    color: #5a8f88;
    animation: igNavFloat 3s ease-in-out infinite;
}

.app-nav-icon--profile {
    color: #8b7ec8;
    animation: igNavPulse 2.4s ease-in-out infinite;
}

.app-nav-icon--messages {
    color: #4a8fc7;
    animation: igNavBounce 2.8s ease-in-out infinite;
}

.app-nav-icon--notifications {
    color: #e8a04a;
    animation: igNavBell 2.5s ease-in-out infinite;
}

.app-nav-icon--premium {
    color: #c9a227;
    animation: igNavSparkle 3.2s ease-in-out infinite;
}

.app-nav-icon--admin {
    color: var(--text-muted);
}

.app-nav-icon--logout {
    color: #a05050;
}

.app-nav-item--active .app-nav-icon--feed { color: #3d6f68; }
.app-nav-item--active .app-nav-icon--profile { color: #6a5eb0; }
.app-nav-item--active .app-nav-icon--messages { color: #2d6fa8; }
.app-nav-item--active .app-nav-icon--notifications { color: #c07a20; }
.app-nav-item--active .app-nav-icon--premium { color: #a07a10; }

.app-nav-label {
    flex: 1;
    line-height: 1.2;
}

.app-nav-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff3040;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-nav-badge--notify {
    background: #ff3040;
    animation: igBadgePulse 1.8s ease-in-out infinite;
}

@keyframes igNavFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes igNavPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes igNavBounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-2px); }
}

@keyframes igNavBell {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(10deg); }
    30% { transform: rotate(-8deg); }
    45% { transform: rotate(0deg); }
}

@keyframes igNavSparkle {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.12); filter: brightness(1.2); }
}

@keyframes igBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Notifications page */
.notifications-page {
    max-width: 640px;
    margin: 0 auto;
}

.notifications-header {
    margin-bottom: 24px;
}

.notifications-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 4px;
}

.notifications-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.notification-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.notification-item--unread {
    border-color: #e8a04a;
    background: linear-gradient(135deg, #fffaf2 0%, var(--cream-light) 100%);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8a04a 0%, #f5c86a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: navBell 3s ease-in-out infinite;
}

.notification-icon svg {
    width: 22px;
    height: 22px;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.notification-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff3dc;
    color: #b87a20;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.notification-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.notification-text {
    color: var(--text-secondary);
    white-space: pre-wrap;
    line-height: 1.55;
}

.notifications-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--beige);
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.notifications-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8a04a 0%, #f5c86a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: navBell 3s ease-in-out infinite;
}

.notifications-empty-icon svg {
    width: 28px;
    height: 28px;
}

.notifications-empty p {
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.notifications-empty-hint {
    font-size: 0.9rem;
    color: var(--text-muted) !important;
}

@media (max-width: 900px) {
    .app-shell .site-header {
        display: block;
    }

    .app-shell .site-header .nav-center,
    .app-shell .nav-toggle {
        display: none;
    }

    .app-shell .header-inner {
        grid-template-columns: 1fr;
    }

    .app-main {
        margin-left: 0;
        padding: 16px 12px calc(80px + env(safe-area-inset-bottom));
    }

    .app-sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 0;
        border-right: none;
        border-top: 1px solid var(--border);
        box-shadow: 0 -2px 12px var(--shadow);
    }

    .app-sidebar-logo,
    .app-sidebar-footer {
        display: none;
    }

    .app-sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        gap: 0;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }

    .app-nav-item {
        flex-direction: column;
        gap: 3px;
        padding: 6px 2px;
        font-size: 0.62rem;
        text-align: center;
        flex: 1;
        min-width: 0;
        border-radius: 8px;
    }

    .app-nav-icon {
        width: 26px;
        height: 26px;
    }

    .app-nav-icon svg {
        width: 22px;
        height: 22px;
    }

    .app-nav-avatar {
        width: 22px;
        height: 22px;
    }

    .app-nav-label {
        flex: none;
        line-height: 1;
    }

    .app-nav-badge {
        position: absolute;
        top: 0;
        right: calc(50% - 22px);
        min-width: 16px;
        height: 16px;
        font-size: 0.58rem;
        padding: 0 4px;
    }
}

/* Legal / Privacy Policy */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 72px;
}

.legal-hero {
    text-align: center;
    margin-bottom: 36px;
}

.legal-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
}

.legal-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.4rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.legal-updated {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-intro {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.legal-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-section {
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 24px;
}

.legal-section h2 {
    font-size: 1.1rem;
    color: var(--rose-deep);
    margin-bottom: 12px;
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

.legal-section ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.legal-section a {
    color: var(--teal);
    font-weight: 600;
}

.legal-footer {
    margin-top: 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.legal-footer p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Register profile photo */
.register-photo-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.register-photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--beige), var(--rose));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 1.6rem;
}

.register-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.register-photo-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.register-photo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
