/* ==========================================================
   DEBI — Sosyal Su Tasarrufu Ağı
   Temiz, modern, okunaklı ve dengeli arayüz tasarımı
   ========================================================== */

:root {
    --bg-page: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-highlight: #f0f9ff;
    --bg-warm: #fffbeb;

    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;

    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --brand-primary: #0ea5e9;
    --brand-primary-dark: #0284c7;
    --brand-primary-bg: #e0f2fe;

    --brand-green: #16a34a;
    --brand-green-dark: #15803d;
    --brand-green-bg: #dcfce7;

    --brand-amber: #f59e0b;
    --brand-amber-dark: #b45309;
    --brand-amber-bg: #fef3c7;

    --brand-danger: #ef4444;
    --brand-danger-dark: #b91c1c;
    --brand-danger-bg: #fee2e2;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-pill: 999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-primary-dark);
    text-decoration: none;
    font-weight: 700;
}

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

h1, h2, h3, h4 {
    margin: 0 0 0.35rem 0;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 0.65rem 0;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    font-weight: 700;
    background: var(--bg-subtle);
    border: 1px solid var(--border-strong);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--text-main);
}

/* ==========================================================
   ÜST BAR (TOPBAR)
   ========================================================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.brand-mascot {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.auth-mascot-hero {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.auth-hero-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.auth-hero-mascot {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-mark {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--brand-primary-dark);
}

.brand-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-notif-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-danger-dark);
    background-color: var(--brand-danger-bg);
    border-radius: var(--radius-pill);
    text-decoration: none !important;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-main);
    text-decoration: none !important;
    padding: 4px 10px 4px 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background-color: var(--bg-subtle);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.user-chip:hover {
    background-color: #ffffff;
    border-color: var(--brand-primary);
}

.user-chip-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-chip-name {
    font-weight: 800;
    font-size: 0.86rem;
    color: var(--text-main);
}

.user-chip-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================
   AVATAR & ETİKETLER
   ========================================================== */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.86rem;
    flex-shrink: 0;
    user-select: none;
}

.avatar-img {
    object-fit: cover;
    display: inline-block;
    background-color: var(--bg-subtle);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.76rem;
}

.avatar-xs {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
}

.avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
}

.avatar-xl {
    width: 84px;
    height: 84px;
    font-size: 1.75rem;
    border: 4px solid var(--bg-surface);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    white-space: nowrap;
}

.tag-manager {
    background-color: var(--brand-primary-bg);
    border-color: #bae6fd;
    color: var(--brand-primary-dark);
}

/* ==========================================================
   BUTONLAR & FORMLAR
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary-dark);
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    color: #ffffff;
}

.btn-outline {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background-color: var(--bg-subtle);
    border-color: var(--brand-primary);
    color: var(--brand-primary-dark);
}

.btn-sm {
    height: 36px;
    padding: 0 13px;
    font-size: 0.83rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    background-color: var(--bg-surface);
    color: var(--brand-primary-dark);
    border: 1px solid #bae6fd;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-copy:hover {
    background-color: var(--brand-primary-bg);
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.92rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.form-group input:disabled,
.form-group select:disabled {
    background-color: var(--bg-subtle);
    color: var(--text-muted);
    cursor: not-allowed;
}

.field-hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

/* ==========================================================
   ANA UYGULAMA İSKELETİ (APP SHELL)
   ========================================================== */
.app-shell {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1240px;
    margin: 20px auto 44px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 290px;
    gap: 20px;
    align-items: start;
}

.app-shell.app-shell-2col {
    grid-template-columns: 240px minmax(0, 1fr);
}

.panel-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.panel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.page-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-heading-row > .btn {
    flex-shrink: 0;
    margin-left: auto;
}

.page-heading-row .page-title,
.page-heading-row .page-subtitle {
    margin-top: 0;
}

.event-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.event-card-ended {
    color: var(--text-secondary);
    background: #f8fafc;
    border-left-color: #94a3b8;
}

.event-card-ended .section-title,
.event-card-ended .event-scope-label {
    color: #64748b;
}

.event-card-ended .event-points {
    color: #64748b;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.event-card-ended > p,
.event-card-ended .event-meta-row,
.event-card-ended .panel-card-header > div:first-child > p {
    color: #64748b;
}

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

.event-section > .panel-card-header {
    margin-bottom: 12px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-list .event-card {
    margin: 0;
}

.event-card > p {
    margin-top: 0;
    margin-bottom: 12px;
}

.event-info-box {
    padding: 14px 16px;
    color: var(--text-secondary);
    background: var(--brand-primary-bg);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
}

.event-info-box strong {
    color: var(--brand-primary-dark);
}

.event-info-box p {
    margin: 5px 0 0;
}

.event-card .section-title {
    margin-bottom: 4px;
}

.event-scope-label {
    color: var(--brand-primary-dark);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-points {
    min-width: 62px;
    text-align: center;
    color: var(--brand-primary-dark);
    background: var(--brand-primary-bg);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    padding: 7px 10px;
}

.event-points strong,
.event-points span {
    display: block;
}

.event-points strong {
    font-size: 1.3rem;
}

.event-points span {
    font-size: 0.7rem;
    font-weight: 900;
}

.event-card .panel-card-header > div:first-child > p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.event-meta-row,
.event-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.event-meta-row {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}

.event-reason {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.event-reason summary {
    color: var(--brand-primary-dark);
    cursor: pointer;
    font-weight: 800;
}

.event-reason p {
    margin-top: 6px;
    margin-bottom: 0;
}

.event-participation,
.event-attendance {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 16px;
    padding: 14px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.event-form-heading {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.event-form-heading span,
.event-form-heading h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
}

.event-form-heading small {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.event-photo-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.event-file-input {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 11px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.event-file-input input[type="file"] {
    max-width: 190px;
    margin-left: 8px;
    font: inherit;
    color: var(--text-secondary);
}

.event-attendee-list {
    display: grid;
    gap: 6px;
    padding: 2px 0;
}

.event-attendee-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    color: var(--text-main);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.event-attendee-option:has(input:checked) {
    color: var(--brand-primary-dark);
    background: var(--brand-primary-bg);
    border-color: #bae6fd;
}

.event-attendee-option input {
    accent-color: var(--brand-primary);
}

@media (max-width: 600px) {
    .event-photo-form {
        align-items: stretch;
        flex-direction: column;
    }

    .event-file-input input[type="file"] {
        min-width: 0;
        max-width: 100%;
    }
}

.event-attendance-locked {
    margin-top: 16px;
    padding: 12px 14px;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
}

.ajax-form-error {
    margin-bottom: 12px;
}

.ajax-form-success {
    margin-bottom: 12px;
}

.bill-points-rule-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    line-height: 1.45;
}

.bill-points-rule-box strong {
    color: var(--text-main);
    font-size: 0.84rem;
}

.bill-points-rule-box small {
    color: var(--brand-primary-dark);
    font-weight: 800;
}

.ai-verify-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ai-verify-text small {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.review-pending-tag {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.admin-review-list {
    display: grid;
    gap: 16px;
}

.admin-review-card {
    margin-bottom: 0;
}

.admin-review-card .form-help {
    margin: 4px 0 0;
}

form[aria-busy="true"] {
    opacity: 0.72;
    pointer-events: none;
}

.panel-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--text-main);
}

.panel-period {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-primary-dark);
    background-color: var(--brand-primary-bg);
    padding: 2px 9px;
    border-radius: var(--radius-pill);
}

.panel-desc {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ==========================================================
   SOL SÜTUN: KULLANICI ROL ÖZETİ & NAVİGASYON
   ========================================================== */
.sidebar-role-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.sidebar-role-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-role-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.sidebar-role-text strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-role-text span {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-role-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 800;
    border-radius: 8px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    white-space: nowrap;
}

.role-badge-apt {
    background-color: var(--brand-primary-bg);
    border-color: #bae6fd;
    color: var(--brand-primary-dark);
}

.role-badge-unit {
    background-color: var(--brand-green-bg);
    border-color: #bbf7d0;
    color: var(--brand-green-dark);
}

.role-badge-resident {
    background-color: var(--bg-subtle);
    border-color: var(--border-strong);
    color: var(--text-secondary);
}

.side-nav {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.side-nav-link:hover {
    background-color: var(--bg-subtle);
    color: var(--text-main);
}

.side-nav-link.active {
    background-color: var(--brand-primary-bg);
    color: var(--brand-primary-dark);
    font-weight: 800;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
}

.side-nav-link.active .nav-icon {
    opacity: 1;
}

.nav-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.73rem;
    font-weight: 800;
    color: #ffffff;
    background-color: var(--brand-danger);
    border-radius: var(--radius-pill);
    margin-left: auto;
}

.household-card {
    padding: 15px 16px;
}

.household-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.83rem;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 600;
}

.meta-val {
    font-weight: 800;
    text-align: right;
    color: var(--text-main);
}

.invite-mini-box {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invite-mini-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
}

.invite-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

/* ==========================================================
   ZAMAN TÜNELİ (PROFİL KARTI & GÖRSEL SEÇİCİ DÜZENLEME FORMU)
   ========================================================== */
.timeline-profile-card {
    padding: 0;
    overflow: hidden;
}

.timeline-cover {
    height: 150px;
    background-color: #0284c7;
    background-image: linear-gradient(135deg, #0ea5e9 0%, #0284c7 55%, #0d9488 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.timeline-body {
    padding: 16px 22px 18px 22px;
}

.timeline-header-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.timeline-avatar-wrap {
    margin-top: -48px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--bg-surface);
    position: relative;
    z-index: 2;
}

.timeline-identity {
    flex: 1;
    min-width: 0;
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.timeline-bio {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.timeline-hero-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.timeline-meta-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.timeline-meta-item {
    color: var(--text-secondary);
    text-decoration: none;
}

.timeline-meta-item strong {
    color: var(--text-main);
    font-weight: 800;
}

a.timeline-meta-item:hover {
    color: var(--brand-primary-dark);
    text-decoration: underline;
}

.timeline-water-badge {
    color: var(--brand-green-dark);
}

.context-sep {
    color: var(--border-strong);
}

/* Özel Görsel Seçici Kartlar (Profil & Kapak Düzenleme) */
.profile-edit-card {
    border-color: #bae6fd;
    background-color: #fcfeff;
}

.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.media-picker-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.media-picker-card:hover {
    border-color: var(--brand-primary);
    background-color: var(--bg-highlight);
}

.media-picker-card input[type="file"] {
    display: none;
}

.media-picker-thumb {
    flex-shrink: 0;
    background-color: var(--brand-primary-bg);
    color: var(--brand-primary-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.media-thumb-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.1rem;
}

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

.media-thumb-wide {
    width: 76px;
    height: 56px;
    border-radius: 8px;
    background-image: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
    background-size: cover;
    background-position: center;
}

.media-picker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.media-picker-info strong {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-main);
}

.media-picker-info span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-picker-info .media-picker-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 3px;
    padding: 2px 9px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-primary-dark);
    background-color: var(--brand-primary-bg);
    border-radius: 6px;
}

.edit-profile-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================
   GÖNDERİ OLUŞTURMA & SOSYAL AKIŞ
   ========================================================== */
.composer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.composer-author {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    line-height: 1.25;
}

.composer-author span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.composer-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    resize: vertical;
    background-color: var(--bg-subtle);
    color: var(--text-main);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.composer-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    background-color: #ffffff;
}

.composer-bar-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.composer-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.composer-scope-select {
    height: 36px;
    padding: 0 11px;
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-main);
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
}

.file-attach-label {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-primary-dark);
    background-color: var(--brand-primary-bg);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.file-attach-label:hover {
    background-color: #bae6fd;
}

.file-attach-label input[type="file"] {
    display: none;
}

.composer-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* Akış Sekmeleri */
.feed-tabs-bar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.feed-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feed-tabs.feed-tabs-2 {
    grid-template-columns: repeat(2, 1fr);
}

.feed-tab {
    padding: 11px 10px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.9rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

.feed-tab:last-child {
    border-right: none;
}

.feed-tab small {
    font-weight: 600;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.feed-tab:hover {
    background-color: var(--bg-subtle);
}

.feed-tab.active {
    background-color: var(--brand-primary-bg);
    color: var(--brand-primary-dark);
    box-shadow: inset 0 -3px 0 var(--brand-primary);
}

/* Gönderi Kartı */
.post-card {
    padding: 18px 20px;
}

.post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.post-author-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author-line {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 0.93rem;
}

.author-link {
    color: var(--text-main);
    text-decoration: none;
}

.author-link:hover {
    color: var(--brand-primary-dark);
    text-decoration: underline;
}

.post-location-line {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.post-body {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.post-body p {
    margin-bottom: 8px;
    word-break: break-word;
}

.post-media-frame {
    margin: 10px 0;
    max-width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--bg-subtle);
}

.post-media-frame img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 0.81rem;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-action:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary-dark);
    background-color: var(--brand-primary-bg);
}

.btn-action.reacted {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary-dark);
    color: #ffffff;
}

.btn-action-danger {
    color: var(--brand-danger-dark);
}

.btn-action-danger:hover {
    background-color: var(--brand-danger-bg);
    border-color: var(--brand-danger);
    color: var(--brand-danger-dark);
}

.delete-post-form {
    margin-left: auto;
}

/* Yorumlar */
.comments-box {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.comment-list {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.comment-content {
    flex: 1;
    font-size: 0.86rem;
}

.comment-content p {
    margin: 2px 0 0 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
}

.comment-meta strong {
    color: var(--text-main);
    font-size: 0.83rem;
    font-weight: 800;
}

.comment-form {
    display: flex;
    gap: 8px;
}

.comment-form input[type="text"] {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}

.comment-form input[type="text"]:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* ==========================================================
   APARTMAN SAYFASI & YÖNETİCİ PANELİ
   ========================================================== */
.page-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.section-kicker {
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--brand-primary-dark);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.page-title {
    font-size: 1.38rem;
    margin-bottom: 3px;
}

.page-subtitle {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.section-title {
    font-size: 1.06rem;
    margin-bottom: 0;
}

.sub-heading {
    font-size: 0.93rem;
    margin-bottom: 4px;
}

.invite-badge-card {
    background-color: var(--bg-highlight);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.invite-badge-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--brand-primary-dark);
}

.invite-badge-code {
    display: flex;
    align-items: center;
    gap: 8px;
}

.invite-badge-hint {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stat-box {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.clear-role-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.clear-section-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.clear-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.code-share-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.code-share-strip.strip-apt {
    background-color: var(--bg-highlight);
    border-color: #bae6fd;
}

.code-share-strip.strip-unit {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.code-share-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 240px;
}

.code-share-info strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.code-share-info span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.code-share-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.code-share-box code {
    font-size: 0.96rem;
    padding: 5px 11px;
    background-color: #ffffff;
}

.unit-members-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.manager-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.apt-goal-inline-bar {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.apt-goal-inline-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apt-goal-inline-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.apt-goal-inline-text span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.unit-panel-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
    align-items: stretch;
}

.unit-residents-box,
.unit-invite-box {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.unit-invite-box {
    background-color: var(--bg-highlight);
    border-color: #bae6fd;
}

.sub-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
}

.unit-residents-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.unit-resident-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 6px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-main);
    text-decoration: none !important;
    transition: border-color 0.15s ease;
}

.unit-resident-chip:hover {
    border-color: var(--brand-primary);
}

.unit-resident-name {
    font-size: 0.85rem;
    font-weight: 800;
}

.unit-invite-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.unit-invite-head strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--brand-primary-dark);
}

.unit-invite-head span {
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.unit-invite-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.residents-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manager-tool-card {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.manager-tool-info .panel-desc {
    margin-bottom: 0;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.inline-action-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-action-form input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}

.inline-action-form input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.invitations-table-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.period-filter-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.period-filter-form select {
    height: 36px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 700;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background-color: var(--bg-surface);
    color: var(--text-main);
}

/* Tablolar */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    white-space: nowrap;
}

.data-table th {
    background-color: var(--bg-subtle);
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.data-table tr.row-highlight {
    background-color: var(--bg-highlight);
}

.resident-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.table-actions-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.table-sub {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.pill-good {
    background-color: var(--brand-green-bg);
    color: var(--brand-green-dark);
}

.pill-neutral {
    background-color: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ==========================================================
   ARKADAŞLAR SAYFASI (KOMPAKT 2 SÜTUNLU LİSTE)
   ========================================================== */
.friends-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.friend-compact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    color: var(--text-main);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.friend-card-link:hover {
    border-color: var(--brand-primary);
    background-color: #ffffff;
}

.friend-compact-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    color: var(--text-main);
    text-decoration: none !important;
}

.friend-compact-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.friend-compact-meta strong {
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-compact-meta span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* ==========================================================
   YAPAY ZEKA FATURA YÜKLEME & ONAY EKRANI
   ========================================================== */
.bill-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 18px;
    background-color: var(--bg-subtle);
    border: 2px dashed #7dd3fc;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: 14px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bill-dropzone:hover {
    background-color: var(--bg-highlight);
    border-color: var(--brand-primary);
}

.bill-dropzone .bill-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.bill-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bill-dropzone-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
}

.bill-dropzone-content strong {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-main);
}

.bill-dropzone-content span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.bill-selected-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bill-selected-preview[hidden] {
    display: none;
}

.bill-selected-preview img {
    max-height: 220px;
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    object-fit: contain;
}

.bill-selected-preview span {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--brand-primary-dark);
}

.bill-confirm-card {
    border-color: #7dd3fc;
}

.bill-ai-notice {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.bill-ai-notice.notice-ok {
    background-color: var(--brand-primary-bg);
    border-color: #bae6fd;
    color: var(--text-main);
}

.bill-ai-notice.notice-warn {
    background-color: var(--brand-amber-bg);
    border-color: #fde68a;
    color: var(--brand-amber-dark);
}

.bill-verify-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.bill-preview-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.bill-scanned-img {
    width: 100%;
    max-height: 310px;
    object-fit: contain;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: block;
}

.bill-calc-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background-color: var(--brand-green-bg);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.bill-calc-preview strong {
    font-size: 1rem;
    font-weight: 900;
    color: var(--brand-green-dark);
}

.bill-confirm-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}

/* ==========================================================
   SAĞ SÜTUN: DEBİ ÖZETİ & LİDERLİK
   ========================================================== */
.metric-highlight {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-subtle);
    margin-bottom: 12px;
}

.metric-with-mascot {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mascot-sm {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.empty-mini-mascot {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.metric-highlight.status-good {
    background-color: var(--brand-green-bg);
    border-color: #bbf7d0;
}

.metric-highlight.status-warn {
    background-color: var(--brand-amber-bg);
    border-color: #fde68a;
}

.metric-highlight.status-high {
    background-color: var(--brand-danger-bg);
    border-color: #fecaca;
}

.metric-big {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
}

.metric-big small {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.metric-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comp-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.progress-track {
    height: 8px;
    background-color: var(--bg-page);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--brand-primary);
    border-radius: var(--radius-pill);
}

.progress-fill.fill-green {
    background-color: var(--brand-green);
}

.lb-switch-tabs {
    display: flex;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 3px;
    margin-bottom: 10px;
}

.lb-switch-tab {
    flex: 1;
    padding: 5px 6px;
    font-family: inherit;
    font-size: 0.77rem;
    font-weight: 800;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.lb-switch-tab:hover {
    color: var(--text-main);
}

.lb-switch-tab.active {
    background-color: var(--bg-surface);
    color: var(--brand-primary-dark);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
}

.leaderboard-item.leaderboard-me {
    background-color: var(--bg-highlight);
    border-color: #bae6fd;
}

.rank-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}

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

.rank-name {
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-sub {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-val {
    font-weight: 800;
    color: var(--brand-green-dark);
    flex-shrink: 0;
}

/* ==========================================================
   SU TÜKETİM TREND GRAFİĞİ
   ========================================================== */
.trend-chart-box {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.trend-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.84rem;
}

.trend-chart-title {
    font-weight: 800;
    color: var(--text-main);
}

.trend-target-legend {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-green-dark);
    background-color: var(--brand-green-bg);
    padding: 2px 9px;
    border-radius: var(--radius-pill);
}

.trend-bars-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 140px;
    padding: 10px 4px 4px 4px;
    border-bottom: 1px solid var(--border-strong);
    overflow-x: auto;
}

.trend-bar-col {
    flex: 1;
    min-width: 52px;
    max-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.trend-bar-val {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.trend-bar-track {
    width: 30px;
    height: 86px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.trend-bar-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    transition: height 0.3s ease;
}

.trend-bar-fill.bar-good {
    background-color: var(--brand-green);
}

.trend-bar-fill.bar-warn {
    background-color: var(--brand-primary);
}

.trend-bar-fill.bar-high {
    background-color: var(--brand-amber);
}

.trend-bar-label {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 700;
}

/* ==========================================================
   GİRİŞ & KAYIT SAYFALARI (AUTH LAYOUT)
   ========================================================== */
.auth-layout {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1000px;
    margin: 34px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
}

.auth-layout-wide {
    grid-template-columns: 1fr;
    max-width: 780px;
}

.auth-intro {
    padding: 12px 4px;
}

.auth-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-primary-dark);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.auth-intro h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.auth-intro p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    font-weight: 600;
}

.auth-feature-cards {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
}

.auth-feat-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.auth-feat-item div {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.auth-feat-item span {
    color: var(--text-secondary);
    font-weight: 600;
}

.auth-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.auth-card-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.auth-card-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.auth-card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-secondary);
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.mode-tab {
    padding: 12px;
    text-align: left;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mode-tab:hover {
    background-color: #ffffff;
    border-color: var(--brand-primary);
}

.mode-tab strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.mode-tab span {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mode-tab.active {
    background-color: var(--brand-primary-bg);
    border-color: var(--brand-primary);
}

.mode-tab.active strong {
    color: var(--brand-primary-dark);
}

.form-section {
    padding: 16px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.form-section-title {
    font-size: 0.94rem;
    margin-bottom: 2px;
}

.section-note {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.loc-select {
    cursor: pointer;
}

/* ==========================================================
   UYARILAR, BOŞ DURUMLAR VE FOOTER
   ========================================================== */
.container-narrow {
    max-width: 1240px;
    margin: 14px auto 0 auto;
    padding: 0 20px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid transparent;
    margin-bottom: 12px;
}

.alert-success {
    background-color: var(--brand-green-bg);
    color: var(--brand-green-dark);
    border-color: #86efac;
}

.alert-error {
    background-color: var(--brand-danger-bg);
    color: var(--brand-danger-dark);
    border-color: #fca5a5;
}

.empty-state-card {
    text-align: center;
    padding: 32px 22px;
}

.empty-state-card p {
    color: var(--text-secondary);
    font-weight: 600;
    max-width: 520px;
    margin: 0 auto 16px auto;
}

.empty-inline,
.empty-mini {
    padding: 14px;
    background-color: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.action-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.muted-note,
.muted-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.link-subtle {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-primary-dark);
}

.site-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    padding: 18px 20px;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Mobil Alt Sabit Menü (Varsayılan masaüstünde gizli) */
.mobile-bottom-nav {
    display: none;
}

/* ==========================================================
   RESPONSIVE KURALLAR (TABLET & MOBİL)
   ========================================================== */
@media (max-width: 1080px) {
    .app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .sidebar-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .brand-sub,
    .user-chip-meta {
        display: none;
    }

    .app-shell,
    .app-shell.app-shell-2col {
        grid-template-columns: 1fr;
        margin-top: 14px;
        padding: 0 12px;
    }

    .sidebar-left {
        display: none;
    }

    .page-heading-row {
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }

    .page-heading-row > .btn {
        align-self: flex-end;
    }

    .sidebar-right,
    .auth-layout,
    .mode-tabs,
    .form-grid-2,
    .form-grid-3,
    .form-grid-4,
    .grid-2-cols,
    .manager-tools-grid,
    .unit-panel-grid,
    .media-picker-grid,
    .friends-compact-grid,
    .bill-verify-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-header-main {
        flex-wrap: wrap;
    }

    .timeline-hero-actions {
        width: 100%;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        z-index: 60;
    }

    .mobile-bottom-nav.mobile-nav-4 {
        grid-template-columns: repeat(5, 1fr);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        color: var(--text-secondary);
        text-decoration: none !important;
        font-weight: 800;
    }

    .mobile-nav-item.active {
        color: var(--brand-primary-dark);
        background-color: var(--brand-primary-bg);
    }
}

/* ==========================================================
   SU ANALİZİ (ÇİZGİ TABLOSU) & İNTERAKTİF DEBİ GÖLETİ WIDGET'I
   ========================================================== */
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.analytics-kpi-box {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.analytics-kpi-highlight {
    background-color: var(--brand-primary-bg);
    border-color: #bae6fd;
}

.analytics-kpi-label {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.analytics-kpi-val {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
}

.line-chart-container {
    margin-top: 12px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 12px 8px 12px;
    overflow-x: auto;
}

.water-line-svg {
    width: 100%;
    height: auto;
    min-width: 520px;
    display: block;
}

.pond-stage-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid var(--border-color);
    background-color: var(--bg-subtle);
}

.pond-stage-pill.stage-dry {
    background-color: var(--brand-amber-bg);
    color: var(--brand-amber-dark);
    border-color: #fde68a;
}

.pond-stage-pill.stage-half {
    background-color: var(--brand-primary-bg);
    color: var(--brand-primary-dark);
    border-color: #bae6fd;
}

.pond-stage-pill.stage-full {
    background-color: var(--brand-green-bg);
    color: var(--brand-green-dark);
    border-color: #bbf7d0;
}

.pond-stage-arena {
    position: relative;
    margin-top: 14px;
    padding: 46px 20px 22px 20px;
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.pond-drop-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 190px;
    pointer-events: none;
    z-index: 4;
}

.falling-water-drop {
    position: absolute;
    top: -28px;
    font-size: 1.65rem;
    filter: drop-shadow(0 3px 6px rgba(14, 165, 233, 0.35));
    animation: dropFallToPond 0.68s cubic-bezier(0.32, 0, 0.67, 0) forwards;
}

@keyframes dropFallToPond {
    0% {
        transform: translate(-50%, 0) scale(0.85);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    85% {
        transform: translate(-50%, 140px) scale(1.08);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 158px) scale(0.35);
        opacity: 0;
    }
}

.pond-visual-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 440px;
    width: 100%;
    z-index: 2;
}

.pond-stage-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    transition: transform 0.28s ease, opacity 0.22s ease;
}

.pond-stage-img.pond-stage-switching {
    transform: scale(0.95);
    opacity: 0.65;
}

.pond-ripple-ring {
    position: absolute;
    width: 80px;
    height: 34px;
    border: 3px solid rgba(14, 165, 233, 0.75);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.pond-ripple-ring.ripple-active {
    animation: pondRippleExpand 0.65s ease-out forwards;
}

@keyframes pondRippleExpand {
    0% {
        transform: scale(0.4);
        opacity: 0.95;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.pond-mascot-companion {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    max-width: 560px;
    width: 100%;
    z-index: 3;
}

.pond-mascot-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
}

.pond-mascot-speech {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pond-mascot-speech strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

.pond-mascot-speech span {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.pond-meter-box {
    margin-top: 16px;
    padding: 14px 16px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.pond-meter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.pond-meter-track {
    height: 12px;
    background-color: #e2e8f0;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.pond-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #0ea5e9 50%, #16a34a 100%);
    border-radius: var(--radius-pill);
    transition: width 0.35s ease;
}

.pond-stage-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.pond-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    opacity: 0.65;
    transition: all 0.2s ease;
}

.pond-step-item.active {
    opacity: 1;
    border-color: #bae6fd;
}

.pond-step-item.current {
    opacity: 1;
    border-color: var(--brand-primary);
    background-color: var(--bg-highlight);
}

.pond-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-main);
    font-weight: 900;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pond-step-item.active .pond-step-dot {
    background-color: var(--brand-primary);
    color: #ffffff;
}

.pond-step-item strong {
    display: block;
    font-size: 0.84rem;
}

.pond-step-item small {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.pond-controls-box {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #ffffff;
}

.pond-sliders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.pond-slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
}

.pond-slider-group input[type="range"] {
    width: 100%;
    accent-color: var(--brand-primary-dark);
    cursor: pointer;
}

.pond-action-buttons {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-period-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sidebar-pond-card {
    display: block;
    color: var(--text-main);
}

.sidebar-pond-visual {
    margin-top: 8px;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 65%, #f8fafc 100%);
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-pond-img {
    width: 100%;
    max-width: 230px;
    height: auto;
    object-fit: contain;
}

/* ==========================================================
   MOTİVASYON DAMLA ROZETLERİ & DAİRE GÖLETİ KUTLAMA MODALI
   ========================================================== */
.topbar-drop-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
    border: 1.5px solid #38bdf8;
    color: #0369a1;
    font-size: 0.85rem;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topbar-drop-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.22);
    text-decoration: none !important;
}

.topbar-drop-icon {
    font-size: 1rem;
    line-height: 1;
}

.drop-motivation-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
    border: 1.5px solid #38bdf8;
    color: #0369a1;
    font-size: 0.83rem;
    font-weight: 800;
    text-decoration: none !important;
}

.drop-motivation-badge strong {
    font-weight: 900;
    color: #0c4a6e;
}

.role-badge-drops {
    background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
    border-color: #38bdf8;
    color: #0369a1;
    text-decoration: none !important;
    font-weight: 900;
}

.sidebar-drop-hero {
    margin-top: 4px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    border: 1px solid #bae6fd;
}

.sidebar-drop-hero-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-drop-big {
    font-size: 1.3rem;
    font-weight: 900;
    color: #0369a1;
    line-height: 1.2;
}

.sidebar-drop-big small {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.sidebar-drop-sub {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-green-dark);
}

.ai-verify-reward-banner {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
    border: 1.5px solid #34d399;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.ai-verify-reward-banner.is-modified {
    background: var(--brand-amber-bg);
    border-color: #fcd34d;
}

.ai-verify-icon {
    font-size: 1.35rem;
    line-height: 1.1;
    flex-shrink: 0;
}

.ai-verify-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
}

.ai-verify-text strong {
    font-weight: 900;
    color: #065f46;
}

.ai-verify-reward-banner.is-modified .ai-verify-text strong {
    color: var(--brand-amber-dark);
}

.ai-verify-text span {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Tam Ekran Karartmalı Daire Göleti Kutlama Modalı */
.pond-celebration-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 17, 33, 0.88);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: pondOverlayFadeIn 0.28s ease-out forwards;
}

.pond-celebration-overlay.is-closing {
    opacity: 0;
    transition: opacity 0.2s ease;
}

@keyframes pondOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pond-celebration-card {
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border: 2px solid #38bdf8;
    border-radius: var(--radius-lg);
    padding: 24px 24px 22px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(14, 165, 233, 0.28);
    animation: pondCardPopIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pondCardPopIn {
    from {
        transform: translateY(20px) scale(0.94);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.pond-cel-kicker {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.pond-cel-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.pond-cel-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 auto 12px auto;
    max-width: 480px;
}

.pond-cel-reasons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.pond-cel-reason-pill {
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.79rem;
    font-weight: 800;
}

.pond-cel-arena {
    position: relative;
    padding: 46px 16px 18px 16px;
    background: linear-gradient(180deg, #dbeafe 0%, #f0f9ff 65%, #f8fafc 100%);
    border: 1.5px solid #bae6fd;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.pond-cel-drop-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 5;
}

.cel-water-drop {
    font-size: 1.85rem;
}

.pond-cel-visual-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 340px;
    width: 100%;
    z-index: 2;
}

.pond-cel-stage-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    transition: transform 0.28s ease, opacity 0.22s ease;
}

.pond-cel-meter-box {
    margin-top: 14px;
    padding: 12px 14px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: left;
}

.pond-cel-meter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.pond-cel-stage-status {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.pond-cel-stage-status strong {
    color: var(--text-main);
}

.pond-cel-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .analytics-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pond-stage-steps,
    .pond-sliders-grid {
        grid-template-columns: 1fr;
    }

    .pond-celebration-card {
        padding: 18px 14px;
    }

    .pond-cel-title {
        font-size: 1.4rem;
    }
}

/* ==========================================================
   PUAN KULLANIM & MAĞAZA SAYFASI (store.php / magaza.php)
   ========================================================== */
.store-wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
    border: 1.5px solid #38bdf8;
    flex-shrink: 0;
}

.store-wallet-icon {
    font-size: 1.45rem;
    line-height: 1;
}

.store-wallet-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-wallet-meta small {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.store-wallet-meta strong {
    font-size: 1.08rem;
    font-weight: 900;
    color: #0369a1;
}

/* Yan Yana 2 Farklı Seçenek Butonu */
.store-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 2px;
}

.store-choice-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-align: left;
    font-family: inherit;
    background-color: var(--bg-subtle);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.15s ease;
}

.store-choice-btn:hover {
    background-color: #ffffff;
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.store-choice-btn.active {
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    border-color: var(--brand-primary-dark);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
}

.store-choice-icon-img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.store-choice-btn.active .store-choice-icon-img {
    border-color: #7dd3fc;
}

.store-choice-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-choice-text strong {
    font-size: 1.04rem;
    font-weight: 900;
    color: var(--text-main);
}

.store-choice-btn.active .store-choice-text strong {
    color: var(--brand-primary-dark);
}

/* Alt Alta Mağaza ve Kampanya Kartları */
.store-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.store-vertical-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.store-vertical-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.store-card-left {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-width: 0;
}

/* Dikdörtgen ve çizgilere kadar sınırı olan fotoğraf alanı */
.store-photo-frame {
    width: 190px;
    min-height: 136px;
    flex-shrink: 0;
    background-color: var(--bg-subtle);
    border-right: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.store-photo-placeholder-text {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-align: center;
    padding: 8px;
}

.store-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    flex: 1;
    min-width: 0;
}

.store-brand-heading {
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.store-offer-desc {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Kampanya Birleşik Bilgi Kutusu (Kurum, Destekçiler, Toplanan Katkı, Hedef Aynı Yerde) */
.campaign-unified-box {
    margin-top: 4px;
    padding: 12px 14px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.campaign-unified-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.campaign-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.campaign-stat-label {
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.campaign-stat-val {
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--text-main);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.campaign-dp-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.campaign-dp-input-wrap span {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.campaign-dp-input-wrap input[type="number"] {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background-color: var(--bg-surface);
    color: var(--text-main);
}

.store-card-action {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border-left: 1px dashed var(--border-strong);
    background-color: #fafcff;
}

.store-action-form {
    width: 100%;
    margin: 0;
}

.store-discount-btn,
.store-discount-badge {
    width: 100%;
    text-align: center;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    background-color: var(--brand-green-bg);
    border: 1.5px solid #4ade80;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.store-discount-btn:hover {
    background-color: #dcfce7;
    border-color: var(--brand-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.15);
}

.store-discount-btn:active {
    transform: translateY(0);
}

.store-discount-btn.campaign-badge,
.store-discount-badge.campaign-badge {
    background-color: var(--brand-primary-bg);
    border-color: #38bdf8;
}

.store-discount-btn.campaign-badge:hover {
    background-color: #e0f2fe;
    border-color: var(--brand-primary-dark);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.16);
}

.store-discount-btn strong,
.store-discount-badge strong {
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--brand-green-dark);
    line-height: 1.2;
}

.store-discount-btn.campaign-badge strong,
.store-discount-badge.campaign-badge strong {
    color: var(--brand-primary-dark);
}

.store-discount-btn span,
.store-discount-badge span {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.store-history-bar {
    border-top: 3px solid var(--brand-primary);
}

/* Kampanya Üst Görsel Banner Kartı (Mağaza görselinden ~0.75 kat daha uzun) */
.campaign-feature-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.campaign-feature-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.campaign-top-banner {
    width: 100%;
    height: 245px;
    background-color: var(--bg-subtle);
    border-bottom: 1px solid var(--border-strong);
    overflow: hidden;
}

.campaign-top-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.campaign-card-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

/* Kampanya Saha Uygulama Kapsamı Detay Kutusu */
.campaign-scope-details {
    margin-top: 6px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 9px 13px;
}

.campaign-scope-details summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--brand-green-dark);
    list-style: none;
}

.campaign-scope-details summary::-webkit-details-marker {
    display: none;
}

.campaign-scope-list {
    margin: 8px 0 2px 18px;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Aktif Kuponlar ve Akordiyon Geçmiş Sistemi */
.store-active-coupons-card {
    border-top: 3px solid var(--brand-green);
}

.active-coupon-row {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.store-accordion {
    padding: 0;
    overflow: hidden;
}

.store-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.15s ease;
}

.store-accordion-header::-webkit-details-marker {
    display: none;
}

.store-accordion-header:hover {
    background-color: var(--bg-subtle);
}

.store-accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.store-accordion-chevron {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.store-accordion[open] .store-accordion-chevron {
    transform: rotate(180deg);
}

.store-accordion-body {
    padding: 0 20px 18px 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

/* Mağaza & Kampanya Uyarı ve Onay Pop-up Modalı */
.store-popup-overlay[hidden] {
    display: none !important;
}

.store-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: pondOverlayFadeIn 0.2s ease-out forwards;
}

.store-popup-card {
    width: 100%;
    max-width: 430px;
    background-color: #ffffff;
    border: 2px solid #fca5a5;
    border-radius: var(--radius-lg);
    padding: 24px 22px 20px 22px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.32);
    animation: pondCardPopIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.store-popup-card.store-confirm-card {
    border-color: #38bdf8;
}

.store-popup-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: var(--brand-danger-bg);
    border: 1px solid #fca5a5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}

.store-popup-icon.store-confirm-icon {
    background-color: var(--brand-primary-bg);
    border-color: #7dd3fc;
}

.store-popup-title {
    font-size: 1.18rem;
    font-weight: 900;
    color: var(--brand-danger-dark);
    margin: 0 0 8px 0;
}

.store-popup-title.store-confirm-title {
    color: var(--text-main);
}

.store-popup-message {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.48;
    margin: 0 0 18px 0;
}

.store-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Mağaza Satın Alımınız Onaylandı & Kupon Kodu Pop-up Stilleri */
.store-popup-card.store-coupon-success-card {
    max-width: 470px;
    border-color: #4ade80;
}

.store-popup-icon.store-success-icon {
    background-color: var(--brand-green-bg);
    border-color: #86efac;
    color: var(--brand-green-dark);
    font-weight: 900;
}

.store-popup-title.store-success-title {
    color: var(--brand-green-dark);
}

.store-coupon-popup-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin: 0 0 16px 0;
    background-color: #f0fdf4;
    border: 2px dashed #22c55e;
    border-radius: var(--radius-md);
    text-align: left;
}

.store-coupon-popup-code-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.store-coupon-popup-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.store-coupon-popup-code-wrap code {
    font-size: 1.16rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #0f172a;
    background: transparent;
    padding: 0;
}

.store-coupon-popup-copy-btn {
    flex-shrink: 0;
    margin-left: auto;
}

/* Kampanya Destek Göstergeli Teşekkür Belgesi Modal & Belge Stilleri */
.store-popup-card.certificate-modal-shell {
    position: relative;
    max-width: 780px;
    padding: 20px;
    border: 2px solid #d4af37;
    background-color: #f8fafc;
}

.certificate-close-x {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 20;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.thankyou-certificate {
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 46px 56px 40px 56px;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

/* Çift Altın Çerçeve (Görseldeki Tasarım) */
.cert-frame-outer {
    position: absolute;
    inset: 18px 26px;
    border: 2px solid #c8a25a;
    border-radius: 6px;
    pointer-events: none;
    z-index: 2;
}

.cert-frame-inner {
    position: absolute;
    inset: 26px 18px;
    border: 2px solid #d4b26f;
    border-radius: 6px;
    pointer-events: none;
    z-index: 2;
}

.cert-leaves {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.cert-leaves-top-right {
    top: 0;
    right: 0;
    width: 230px;
    height: 245px;
}

.cert-leaves-bottom-left {
    bottom: 0;
    left: 0;
    width: 165px;
    height: 185px;
}

.cert-body-content {
    position: relative;
    z-index: 5;
    max-width: 560px;
}

.cert-script-title {
    font-family: 'Georgia', 'Palatino Linotype', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 2.65rem;
    line-height: 1.12;
    color: #cca35e;
    margin: 0 0 18px 0;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(204, 163, 94, 0.18);
}

.cert-recipient-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 6px;
    margin-bottom: 18px;
    border-bottom: 1.6px solid #c8a25a;
    max-width: 470px;
}

.cert-sn-prefix {
    font-family: 'Oswald', 'Trebuchet MS', sans-serif;
    font-size: 1.7rem;
    font-weight: 500;
    color: #4b5563;
}

.cert-recipient-name {
    font-size: 1.42rem;
    font-weight: 800;
    color: #1e293b;
}

.cert-appreciation-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.04rem;
    line-height: 1.58;
    color: #475569;
    margin: 0 0 18px 0;
}

.cert-appreciation-text strong {
    color: #1e293b;
    font-weight: 700;
}

/* Göstergeli Katkı & Kampanya İlerleme Kutusu */
.cert-indicator-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 0 24px 0;
}

.cert-indicator-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 0.82rem;
    color: #334155;
}

.cert-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: #dcfce7;
    color: #166534;
    font-weight: 800;
}

.cert-indicator-target {
    font-weight: 700;
    color: #475569;
}

.cert-indicator-track {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.cert-indicator-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    border-radius: 999px;
}

.cert-signatures-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 56px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cert-sig-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 165px;
}

.cert-sig-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: #4b5563;
    padding-bottom: 4px;
    border-bottom: 1.5px solid #c8a25a;
}

.cert-sig-value {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
}

.certificate-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.certificate-share-feedback {
    margin: 10px 0 0 0;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--brand-green-dark);
}

.store-balance-hint {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-amber-dark);
}

.store-redemption-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-redemption-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.store-redemption-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.store-redemption-info strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
}

.store-redemption-info span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .store-choice-grid,
    .campaign-unified-grid {
        grid-template-columns: 1fr;
    }

    .store-vertical-card,
    .store-card-left,
    .campaign-card-content {
        flex-direction: column;
    }

    .campaign-top-banner {
        height: 195px;
    }

    .store-photo-frame {
        width: 100%;
        min-height: 150px;
        border-right: none;
        border-bottom: 1px solid var(--border-strong);
    }

    .store-card-action {
        width: 100%;
        border-left: none;
        border-top: 1px dashed var(--border-strong);
    }

    .thankyou-certificate {
        padding: 34px 26px 30px 26px;
    }

    .cert-script-title {
        font-size: 2rem;
    }

    .cert-signatures-row {
        gap: 24px;
    }
}
