@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
}

[data-theme="dark"] {
    --pink-50: #1a1025;
    --pink-100: #231535;
    --pink-200: #2d1b45;
    --pink-300: #4a2878;
    --pink-400: #7c3aed;
    --pink-500: #a855f7;
    --pink-600: #c084fc;
    --pink-700: #d8b4fe;
    --purple-400: #f472b6;
    --purple-500: #ec4899;
    --white: #1a1025;
    --gray-50: #1e1330;
    --gray-100: #251a3a;
    --gray-200: #352a4a;
    --gray-300: #4a3d60;
    --gray-500: #9ca3af;
    --gray-700: #d1d5db;
    --gray-900: #f3f4f6;
}

[data-theme="mavi"] {
    --pink-50: #eff6ff;
    --pink-100: #dbeafe;
    --pink-200: #bfdbfe;
    --pink-300: #93c5fd;
    --pink-400: #60a5fa;
    --pink-500: #3b82f6;
    --pink-600: #2563eb;
    --pink-700: #1d4ed8;
    --purple-400: #818cf8;
    --purple-500: #6366f1;
}

[data-theme="yesil"] {
    --pink-50: #f0fdf4;
    --pink-100: #dcfce7;
    --pink-200: #bbf7d0;
    --pink-300: #86efac;
    --pink-400: #4ade80;
    --pink-500: #22c55e;
    --pink-600: #16a34a;
    --pink-700: #15803d;
    --purple-400: #a3e635;
    --purple-500: #84cc16;
}

[data-theme="turuncu"] {
    --pink-50: #fff7ed;
    --pink-100: #ffedd5;
    --pink-200: #fed7aa;
    --pink-300: #fdba74;
    --pink-400: #fb923c;
    --pink-500: #f97316;
    --pink-600: #ea580c;
    --pink-700: #c2410c;
    --purple-400: #f472b6;
    --purple-500: #ec4899;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, var(--pink-50) 0%, #faf5ff 50%, var(--pink-100) 100%);
    color: var(--gray-900);
    min-height: 100vh;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f0a1a 0%, #1a1025 50%, #0f0a1a 100%);
}

a { color: var(--pink-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pink-700); }

/* TOP BRAND BAR */
.top-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.9rem 1.5rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--pink-200);
}
[data-theme="dark"] .top-brand {
    background: rgba(26, 16, 37, 0.9);
    border-bottom-color: var(--pink-200);
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pink-600);
}
.brand-link span { font-size: 1.8rem; line-height: 1; }
.brand-link:hover { color: var(--pink-700); }

.brand-admin {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.brand-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pink-100);
    color: var(--pink-600);
    border: 1px solid var(--pink-200);
    transition: all 0.2s;
}
.brand-admin-link svg { width: 18px; height: 18px; }
.brand-admin-link:hover {
    background: var(--pink-500);
    color: #fff;
    border-color: var(--pink-500);
}

/* BOTTOM NAV (mobile-style symbol navigation) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--pink-200);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
[data-theme="dark"] .bottom-nav {
    background: rgba(26, 16, 37, 0.94);
    border-top-color: var(--pink-200);
}
.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    flex: 1;
    padding: 0.3rem 0;
    color: var(--gray-500);
    border-radius: var(--radius);
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.bottom-item:hover { color: var(--pink-600); }
.bottom-item.active { color: var(--pink-600); }
[data-theme="dark"] .bottom-item { color: var(--gray-400); }
[data-theme="dark"] .bottom-item.active { color: var(--pink-400); }
.bottom-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}
.bottom-icon svg { width: 26px; height: 26px; }
.bottom-item.active .bottom-icon svg { fill: var(--pink-600); }
.bottom-icon .nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--pink-500);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.bottom-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: inherit;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bottom-add {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 42px;
    height: 42px;
    margin: 0 0.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-500), #a855f7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(236,72,153,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.bottom-add svg { width: 26px; height: 26px; stroke-width: 2.4; }
.bottom-add:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(236,72,153,0.45); }
.bottom-add:active { transform: scale(0.95); }
.bottom-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pink-100);
    color: var(--pink-600);
    font-weight: 800;
    font-size: 0.75rem;
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color 0.2s;
}
.bottom-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bottom-item.active .bottom-avatar { border-color: var(--pink-600); }
.bottom-nav-spacer { height: 76px; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
    color: white;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
    color: white;
}
.btn-secondary {
    background: white;
    color: var(--pink-600);
    border: 2px solid var(--pink-300);
}
[data-theme="dark"] .btn-secondary {
    background: var(--pink-100);
    border-color: var(--pink-300);
}
.btn-secondary:hover {
    background: var(--pink-50);
    border-color: var(--pink-400);
    color: var(--pink-700);
}
.btn-danger {
    background: #ef4444;
    color: white;
}
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.1rem; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { padding: 2rem 0; min-height: calc(100vh - 140px); }

/* LANDING PAGE */
.landing {
    text-align: center;
    padding: 4rem 1.5rem;
}
.landing h1 {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink-600), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.landing p {
    font-size: 1.3rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto;
}
.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--pink-100);
}
[data-theme="dark"] .feature-card {
    background: var(--pink-100);
    border-color: var(--pink-200);
}
.feature-card .icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { font-weight: 700; margin-bottom: 0.5rem; color: var(--gray-900); }
.feature-card p { color: var(--gray-500); font-size: 0.95rem; }
.landing-hero {
    font-size: 8rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* CARDS */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--pink-100);
    overflow: hidden;
    transition: all 0.3s;
}
[data-theme="dark"] .card {
    background: var(--pink-100);
    border-color: var(--pink-200);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card-body { padding: 1.25rem; }
.card-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; }
.card-text { color: var(--gray-500); font-size: 0.9rem; }

/* CAT GRID */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.cat-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0;
}
.cat-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--pink-200);
}
.cat-meta { font-size: 0.85rem; color: var(--gray-500); }
.cat-photo-container {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}
.cat-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.card:hover .cat-photo-container img { transform: scale(1.05); }
.cat-card-footer {
    padding: 0.75rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.like-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.like-btn:hover { transform: scale(1.15); }
.like-btn.liked { color: #ef4444; }
.like-count { font-size: 0.9rem; color: var(--gray-500); font-weight: 600; }

/* REACTIONS */
.reaction-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: white;
    border: 1.5px solid var(--pink-200);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.7rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.reaction-btn:hover { transform: scale(1.08); }
.reaction-btn:active { transform: scale(1.15); }
.reaction-btn .reaction-emoji { font-size: 1.05rem; line-height: 1; }
.reaction-btn.active {
    background: var(--pink-100);
    border-color: var(--pink-500);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.2);
}

/* FOLLOW BUTTON */
.btn.follow-btn.following {
    background: var(--pink-100);
    color: var(--pink-700);
}
.gender-badge {
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}
.gender-badge.female { background: #fce7f3; color: #be185d; }
.gender-badge.male { background: #dbeafe; color: #1d4ed8; }
.gender-badge.sokak { background: #fef3c7; color: #b45309; }
.gender-badge.sahipli { background: #dcfce7; color: #15803d; }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--gray-700);
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--pink-200);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}
[data-theme="dark"] .form-control {
    background: var(--pink-100);
    color: var(--gray-900);
    border-color: var(--pink-300);
}
.form-control:focus {
    outline: none;
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.15);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; cursor: pointer; }

/* AUTH CARDS */
.auth-card {
    max-width: 440px;
    margin: 3rem auto;
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--pink-100);
}
[data-theme="dark"] .auth-card {
    background: var(--pink-100);
    border-color: var(--pink-200);
}
.auth-card h2 {
    text-align: center;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--pink-600);
}
.auth-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* FLASH MESSAGES */
.flash-container {
    max-width: 600px;
    margin: 1rem auto;
}
.flash {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.flash.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash.danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash.warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.flash.info { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }

/* PROFILE PAGE */
.profile-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--pink-300);
    margin-bottom: 1rem;
}
.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--pink-300);
    margin-bottom: 1rem;
}
.profile-name {
    font-size: 1.8rem;
    font-weight: 800;
}
.profile-bio {
    color: var(--gray-500);
    margin-top: 0.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}
.stat { text-align: center; }
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--pink-600); }
.stat-label { font-size: 0.85rem; color: var(--gray-500); font-weight: 600; }

/* DETAIL PAGE */
.detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.detail-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.detail-photos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s;
}
.detail-photos img:hover { transform: scale(1.03); }
.detail-photos img.main-photo {
    grid-column: 1 / -1;
    height: 350px;
}
.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.detail-info h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pink-600);
}
.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}
.info-label { font-weight: 700; color: var(--gray-700); min-width: 100px; }
.info-value { color: var(--gray-500); }
.detail-description {
    background: var(--pink-50);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--pink-200);
    line-height: 1.6;
}
[data-theme="dark"] .detail-description {
    background: var(--pink-100);
    border-color: var(--pink-200);
}
.detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* SECTION HEADER */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gray-500);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--gray-700); margin-bottom: 0.5rem; }

/* PHOTO UPLOAD */
.upload-zone {
    border: 2px dashed var(--pink-300);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--pink-50);
}
.upload-zone:hover { border-color: var(--pink-500); background: var(--pink-100); }
.upload-zone input[type="file"] { display: none; }

/* GRID LAYOUT FOR CAT PHOTOS */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.photo-grid-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-grid-item .delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239,68,68,0.85);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
    font-size: 0.9rem;
    border-top: 1px solid var(--pink-100);
    margin-top: 3rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .landing h1 { font-size: 2rem; }
    .landing-hero { font-size: 5rem; }
    .cat-detail-top { grid-template-columns: 1fr !important; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .navbar .container { flex-wrap: wrap; gap: 0.5rem; }
    .profile-header { padding: 2rem 1rem 1rem; }
    .auth-card { margin: 1.5rem auto; padding: 1.5rem; }
}

.cat-detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* PAGE TITLE */
.page-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--pink-600), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}
.pagination a { background: white; border: 1px solid var(--pink-200); color: var(--pink-600); }
.pagination a:hover { background: var(--pink-100); }
.pagination span.current {
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
    color: white;
}

/* THEME SELECTOR */
#themeBox { transition: all 0.2s; }
[data-theme="dark"] #themeBox { background: var(--pink-100); border-color: var(--pink-300); }
.theme-btn { border: 2px solid rgba(255,255,255,0.6); }
.theme-btn:hover { transform: scale(1.15); }
.theme-btn.active { border-color: var(--gray-900); box-shadow: 0 0 0 2px var(--gray-900); }

/* NAV BADGE (messages / notifications) */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 3px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: top;
}

/* MESSAGES LIST */
.msg-thread {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: white;
    border: 1px solid var(--pink-100);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    color: inherit;
}
.msg-thread:hover {
    border-color: var(--pink-300);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

/* HOME PAGE */
.home-page { max-width: 640px; }
.home-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid var(--pink-100);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}
.home-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-400), var(--purple-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    object-fit: cover;
    border: 2px solid var(--pink-200);
    flex-shrink: 0;
}
.home-hero-info { flex: 1; min-width: 160px; }
.home-hero-name { font-weight: 800; font-size: 1.15rem; }
.home-hero-stats {
    display: flex;
    gap: 1.1rem;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}
.home-hero-stats b { color: var(--pink-600); font-size: 1rem; margin-right: 2px; }

.home-shortcuts {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding: 1.1rem 0.25rem;
    margin: 1.25rem 0;
    scrollbar-width: none;
}
.home-shortcuts::-webkit-scrollbar { display: none; }
.home-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 64px;
    text-decoration: none;
}
.home-shortcut-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: white;
    border: 2px solid var(--pink-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.home-shortcut-icon svg { width: 28px; height: 28px; }
.home-shortcut:hover .home-shortcut-icon svg {
    color: var(--pink-600);
}
.home-shortcut:hover .home-shortcut-icon {
    border-color: var(--pink-500);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.home-shortcut-icon .nav-badge {
    position: absolute;
    top: -4px;
    right: -6px;
}
.home-shortcut-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-500);
}
.home-feed-title {
    text-align: center;
    font-weight: 800;
    margin: 1rem 0 1.25rem;
}

.feed-card {
    background: white;
    border: 1px solid var(--pink-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.feed-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
}
.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-300), var(--purple-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    object-fit: cover;
    border: 2px solid var(--pink-200);
    flex-shrink: 0;
}
.feed-head-info { flex: 1; min-width: 0; }
.feed-head-name { font-weight: 800; font-size: 0.95rem; }
.feed-head-time { font-size: 0.72rem; color: var(--gray-500); }
.feed-photo { display: block; }
.feed-photo img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
    background: var(--pink-50);
}
.feed-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem 0.3rem;
}
.feed-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray-500);
    font-family: 'Nunito', sans-serif;
    transition: transform 0.15s;
}
.feed-like-btn:hover { transform: scale(1.08); }
.feed-like-btn.liked { color: #ef4444; }
.feed-like-btn .count { font-size: 0.82rem; font-weight: 800; }
.feed-reactions { padding: 0.4rem 1rem 0; }
.feed-caption {
    padding: 0.5rem 1rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 768px) {
    .home-shortcut-icon { width: 50px; height: 50px; font-size: 1.3rem; }
    .home-hero { padding: 1rem; }
}

/* CHAT */
.chat-card {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--pink-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 420px;
    overflow: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--pink-100);
    background: var(--pink-50);
}
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: linear-gradient(180deg, var(--pink-50) 0%, #fff 100%);
}
.msg-row {
    display: flex;
    flex-direction: column;
    max-width: 78%;
}
.msg-mine { align-self: flex-end; align-items: flex-end; }
.msg-theirs { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
    padding: 0.55rem 0.95rem;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}
.msg-mine .msg-bubble {
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
    color: white;
    border-bottom-right-radius: 6px;
}
.msg-theirs .msg-bubble {
    background: white;
    border: 1px solid var(--pink-200);
    color: var(--gray-900);
    border-bottom-left-radius: 6px;
}
.msg-time {
    font-size: 0.68rem;
    color: var(--gray-500);
    margin-top: 3px;
    padding: 0 6px;
}
.chat-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--pink-100);
    background: white;
}
.chat-form input {
    flex: 1;
    border: 1px solid var(--pink-200);
    border-radius: var(--radius-full);
    padding: 0.65rem 1.1rem;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
}
.chat-form input:focus { border-color: var(--pink-500); }

@media (max-width: 768px) {
    .chat-card { height: calc(100vh - 150px); }
}

.ad-slot {
    max-width: 728px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
    line-height: 0;
}
.ad-slot .adsbygoogle {
    max-height: 90px !important;
    height: 90px !important;
    display: inline-block;
}
.ad-slot iframe {
    max-height: 90px !important;
    height: 90px !important;
}
.ad-top {
    margin-bottom: 0.5rem;
    padding: 0.4rem 0;
}
.ad-bottom {
    margin-top: 0.5rem;
    padding: 0.4rem 0;
}
@media (max-width: 480px) {
    .ad-slot {
        max-width: 100%;
    }
    .ad-slot .adsbygoogle,
    .ad-slot iframe {
        max-height: 66px !important;
        height: 66px !important;
    }
}
