/* ============================================================
   ŞİKAYET PLATFORMU — Style (Dynamic Brand Theme)
   Renkler .env brand.color* ile değiştirilebilir
   ============================================================ */

/* ─── RESET & BASE ─────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--brand-bg, #0a1a14);
    color: var(--brand-text, #f5faf6);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--brand-primary, #2ee6a8);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-accent, #5dffc8);
}

img {
    max-width: 100%;
}

/* ─── HEADER ───────────────────────────────── */
.header {
    background: var(--brand-bg-card, #0d2e22);
    border-bottom: 1px solid var(--brand-border, #1a4d38);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    color: var(--brand-primary, #2ee6a8);
    letter-spacing: 2px;
}

.logo-badge {
    background: var(--brand-primary, #2ee6a8);
    color: var(--brand-bg-card, #0d2e22);
    font-size: 13px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.logo-slogan {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--brand-border, #1a4d38);
    padding-left: 16px;
}

.slogan-top {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary, #2ee6a8);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.slogan-bottom {
    font-size: 11px;
    color: var(--brand-text-muted, #8ab89e);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #f5faf6;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--brand-primary, #2ee6a8);
}

.nav-user {
    color: var(--brand-text-muted, #8ab89e);
}

.nav-mobile-only {
    display: none;
}

.nav-desktop-only {
    display: inline-flex;
}

/* Logout button styles */
.nav-logout-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.nav-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.admin-logout-form {
    margin: 0;
    padding: 0;
}

.admin-logout-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

/* Hamburger Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 8px;
    cursor: pointer;
    padding: 7px;
    transition: border-color 0.2s;
    z-index: 200;
}

.nav-toggle:hover {
    border-color: var(--brand-primary, #2ee6a8);
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #f5faf6;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.25s;
}

/* Hamburger X animation */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ─── BUTTONS ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--brand-primary, #2ee6a8);
    color: var(--brand-bg, #0a1a14);
    font-weight: 800;
}

.btn-primary:hover {
    background: var(--brand-accent, #5dffc8);
    color: var(--brand-bg, #0a1a14);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--brand-primary, #2ee6a8);
    color: var(--brand-primary, #2ee6a8);
}

.btn-outline:hover {
    background: rgba(46, 230, 168, 0.12);
    color: var(--brand-accent, #5dffc8);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-admin {
    background: var(--brand-border, #1a4d38);
    color: var(--brand-primary, #2ee6a8);
    font-size: 11px;
}

.btn-icon {
    font-size: 14px;
}

/* ─── MAIN CONTENT ─────────────────────────── */
.main-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 24px 48px;
    min-height: calc(100vh - 64px - 200px);
}

/* ─── ALERTS ───────────────────────────────── */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background: var(--brand-bg-card, #0d2e22);
    border-color: #2ecc71;
    color: #2ecc71;
}

.alert-error {
    background: #3d1414;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* ─── HERO SECTION ─────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--brand-bg-card, #0d2e22) 0%, #0d2e22 50%, #0a1a14 100%);
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 16px;
    padding: 60px 40px;
    margin: 24px 0;
    text-align: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-highlight {
    color: var(--brand-primary, #2ee6a8);
}

.hero-desc {
    font-size: 16px;
    color: #b0d4be;
    max-width: 700px;
    margin: 0 auto 32px;
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--brand-bg-card, #0d2e22);
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    gap: 12px;
}

.search-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f5faf6;
    font-size: 15px;
    outline: none;
    padding: 10px 0;
}

.search-input::placeholder {
    color: #6a9e7e;
}

.btn-search {
    border-radius: 50px;
    padding: 12px 28px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0d2e2280;
    border: 1px solid var(--brand-border, #1a4d38);
    padding: 16px 24px;
    border-radius: 12px;
    min-width: 220px;
}

.hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-icon-green {
    background: var(--brand-border, #1a4d38);
    color: #2ecc71;
}

.stat-icon-orange {
    background: #5c3d1d;
    color: #26c490;
}

.stat-icon-blue {
    background: #1d3d5c;
    color: #3498db;
}

.hero-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #f5faf6;
}

.hero-stat-label {
    display: block;
    font-size: 10px;
    color: var(--brand-text-muted, #8ab89e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ─── LAYOUT (2 columns) ──────────────────── */
.layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-top: 24px;
}

.layout-main {
    min-width: 0;
}

/* ─── PENDING NOTICE ───────────────────────── */
.card-pending-notice {
    background: linear-gradient(135deg, #3a2800 0%, #2a1e00 100%);
    border: 1px solid rgba(46, 230, 168, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 8px 0;
    font-size: 13px;
    color: var(--brand-primary, #2ee6a8);
    line-height: 1.5;
}

.card-pending-notice strong {
    color: #5dffc8;
}

/* ─── FILTER BAR ───────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #b0d4be;
    border: 1px solid var(--brand-border, #1a4d38);
    background: transparent;
    transition: all 0.2s;
}

.pill:hover {
    border-color: var(--brand-primary, #2ee6a8);
    color: var(--brand-primary, #2ee6a8);
}

.pill-active {
    background: linear-gradient(180deg, var(--brand-primary, #2ee6a8) 0%, #26c490 100%);
    color: var(--brand-bg-card, #0d2e22);
    border-color: var(--brand-primary, #2ee6a8);
}

.pill-active:hover {
    color: var(--brand-bg-card, #0d2e22);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-all { background: var(--brand-primary, #2ee6a8); }
.dot-resolved { background: #2ecc71; }
.dot-progress { background: #3498db; }
.dot-open { background: #e74c3c; }

/* ─── LIST HEADER ──────────────────────────── */
.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.list-title {
    font-size: 20px;
    font-weight: 800;
}

.sort-links {
    display: flex;
    gap: 4px;
    background: var(--brand-bg-card, #0d2e22);
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 8px;
    padding: 4px;
}

.sort-link {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-text-muted, #8ab89e);
    border-radius: 6px;
    transition: all 0.2s;
}

.sort-link:hover {
    color: #f5faf6;
}

.sort-active {
    background: var(--brand-border, #1a4d38);
    color: #f5faf6;
}

/* ─── COMPLAINT CARD ───────────────────────── */
.complaint-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cv-card {
    background: var(--brand-bg-card, #0d2e22);
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.2s;
}

.cv-card:hover {
    border-color: #2a7a47;
}

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

.card-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-border, #1a4d38);
    color: var(--brand-primary, #2ee6a8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
    color: #f5faf6;
}

.card-meta {
    font-size: 12px;
    color: #6a9e7e;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-open {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #e74c3c;
}

.badge-progress {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.25);
    color: #f39c12;
}

.badge-resolved {
    background: rgba(46, 230, 168, 0.12);
    border: 1px solid rgba(46, 230, 168, 0.25);
    color: #2ee6a8;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.card-body {
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-title a {
    color: #f5faf6;
}

.card-title a:hover {
    color: var(--brand-primary, #2ee6a8);
}

.card-excerpt {
    font-size: 14px;
    color: var(--brand-text-muted, #8ab89e);
    line-height: 1.5;
}

.read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary, #2ee6a8);
    display: inline-block;
    margin-top: 8px;
}

/* Brand Reply Preview */
.brand-reply-preview {
    background: #0a1a14;
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.reply-brand-avatar {
    background: var(--brand-border, #1a4d38);
    color: var(--brand-primary, #2ee6a8);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
}

.reply-brand-name {
    font-weight: 700;
    font-size: 14px;
}

.reply-badge {
    background: var(--brand-primary, #2ee6a8);
    color: var(--brand-bg-card, #0d2e22);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.reply-time {
    font-size: 12px;
    color: #6a9e7e;
    margin-left: auto;
}

.reply-text {
    font-size: 14px;
    color: #b0d4be;
    line-height: 1.5;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #1a4d3830;
}

.card-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    font-size: 13px;
    color: #6a9e7e;
}

.btn-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 50px;
    background: transparent;
    color: #b0d4be;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-support:hover {
    border-color: var(--brand-primary, #2ee6a8);
    color: var(--brand-primary, #2ee6a8);
}

.support-count {
    background: var(--brand-border, #1a4d38);
    color: var(--brand-primary, #2ee6a8);
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
}

.support-form {
    display: inline;
}

/* ─── SIDEBAR ──────────────────────────────── */
.sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-widget {
    background: var(--brand-bg-card, #0d2e22);
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 16px;
    padding: 24px;
}

.widget-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f5faf6;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-icon {
    font-size: 16px;
}

.stats-list {
    display: flex;
    flex-direction: column;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #1a4d3830;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: var(--brand-text-muted, #8ab89e);
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #f5faf6;
}

.stat-yellow { color: var(--brand-primary, #2ee6a8); }
.stat-green { color: #2ecc71; }
.stat-blue { color: #3498db; }

/* ─── PAGINATION ───────────────────────────── */
.pagination-wrapper {
    margin-top: 32px;
    text-align: center;
}

.pagination-info {
    font-size: 13px;
    color: #6a9e7e;
    margin-bottom: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #b0d4be;
    border: 1px solid var(--brand-border, #1a4d38);
    background: var(--brand-bg-card, #0d2e22);
    transition: all 0.2s;
}

.page-link:hover {
    border-color: var(--brand-primary, #2ee6a8);
    color: var(--brand-primary, #2ee6a8);
}

.page-active {
    background: linear-gradient(180deg, var(--brand-primary, #2ee6a8) 0%, #26c490 100%);
    color: var(--brand-bg-card, #0d2e22);
    border-color: var(--brand-primary, #2ee6a8);
}

.page-active:hover {
    color: var(--brand-bg-card, #0d2e22);
}

.page-dots {
    padding: 8px 6px;
    color: #6a9e7e;
}

/* ─── AUTH PAGES ───────────────────────────── */
.auth-page, .create-page {
    display: flex;
    justify-content: center;
    padding: 60px 24px;
}

.auth-card, .create-card {
    background: var(--brand-bg-card, #0d2e22);
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.create-card {
    max-width: 700px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--brand-text-muted, #8ab89e);
    margin-bottom: 32px;
}

.auth-link {
    color: var(--brand-primary, #2ee6a8);
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f5faf6;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #0a1a14;
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 8px;
    color: #f5faf6;
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary, #2ee6a8);
}

.form-input::placeholder {
    color: #6a9e7e;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%236a9e7e' viewBox='0 0 24 24'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: var(--brand-bg-card, #0d2e22);
    color: #f5faf6;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 12px;
    color: #6a9e7e;
    margin-top: 4px;
}

/* SMS Verification */
.sms-status {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.sms-success {
    background: var(--brand-bg-card, #0d2e22);
    color: #2ecc71;
    border: 1px solid #2ecc7140;
}

.sms-error {
    background: #3a0000;
    color: #e74c3c;
    border: 1px solid #e74c3c40;
}

.form-input-code {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 12px;
    text-align: center;
    padding: 16px;
}

.code-timer {
    color: var(--brand-primary, #2ee6a8);
    font-weight: 700;
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 0;
}

.phone-prefix {
    background: var(--brand-border, #1a4d38);
    color: var(--brand-primary, #2ee6a8);
    padding: 12px 14px;
    border-radius: 8px 0 0 8px;
    border: 1px solid var(--brand-border, #1a4d38);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.phone-input .form-input {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.text-right {
    text-align: right;
}

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

.form-input-sm {
    padding: 8px 12px;
    font-size: 13px;
}

/* Phone Input */
.phone-input {
    display: flex;
    align-items: center;
    background: #0a1a14;
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 8px;
    overflow: hidden;
}

.phone-prefix {
    padding: 12px 16px;
    background: var(--brand-border, #1a4d38);
    font-weight: 700;
    font-size: 14px;
    color: #f5faf6;
    flex-shrink: 0;
}

.phone-input .form-input {
    border: none;
    border-radius: 0;
}

/* Steps */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 16px;
    background: #0a1a14;
    border-radius: 10px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
}

.step-active {
    opacity: 1;
}

.step-done {
    opacity: 0.7;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-border, #1a4d38);
    color: #f5faf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.step-active .step-number {
    background: var(--brand-primary, #2ee6a8);
    color: var(--brand-bg-card, #0d2e22);
}

.step-done .step-number {
    background: #2ecc71;
    color: #fff;
}

.step-text {
    font-size: 13px;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--brand-border, #1a4d38);
    max-width: 100px;
}

/* ─── DETAIL PAGE ──────────────────────────── */
.detail-page, .profile-page, .about-page {
    max-width: 900px;
    margin: 24px auto;
}

.detail-card, .about-card, .profile-card {
    background: var(--brand-bg-card, #0d2e22);
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 16px;
    padding: 32px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-category {
    background: #0a1a14;
    border: 1px solid var(--brand-border, #1a4d38);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    color: #b0d4be;
}

.detail-time {
    font-size: 13px;
    color: #6a9e7e;
}

.detail-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.detail-author {
    font-size: 13px;
    color: #6a9e7e;
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-author a {
    color: var(--brand-primary, #2ee6a8);
}

.detail-body {
    background: #0a1a14;
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: #d0e8d8;
}

.resolved-banner {
    background: #2ecc7115;
    border: 1px solid #2ecc7140;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
    color: #2ecc71;
    font-weight: 600;
    font-size: 14px;
}

.detail-support {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.btn-support-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 10px;
    background: #0a1a14;
    color: #b0d4be;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-support-detail:hover {
    border-color: var(--brand-primary, #2ee6a8);
    color: var(--brand-primary, #2ee6a8);
}

.support-count-big {
    background: var(--brand-primary, #2ee6a8);
    color: var(--brand-bg-card, #0d2e22);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 16px;
}

.support-hint {
    font-size: 13px;
    color: #6a9e7e;
}

/* Replies Section */
.replies-section {
    margin-top: 24px;
}

.replies-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.reply-card {
    background: var(--brand-bg-card, #0d2e22);
    border: 1px solid var(--brand-border, #1a4d38);
    border-left: 3px solid var(--brand-primary, #2ee6a8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
}

.reply-header-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.reply-message {
    font-size: 15px;
    color: #d0e8d8;
    line-height: 1.6;
}

/* ─── PROFILE PAGE ─────────────────────────── */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary, #2ee6a8), #26c490);
    color: var(--brand-bg-card, #0d2e22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
}

.profile-date {
    font-size: 14px;
    color: #6a9e7e;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    margin: 32px 0 16px;
}

/* ─── ABOUT PAGE ───────────────────────────── */
.about-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-desc {
    font-size: 16px;
    color: #b0d4be;
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-subtitle {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-steps, .about-principles {
    margin-bottom: 32px;
    padding-left: 24px;
}

.about-steps li, .about-principles li {
    font-size: 15px;
    line-height: 1.8;
    color: #b0d4be;
    margin-bottom: 8px;
}

.about-principles li strong {
    color: var(--brand-primary, #2ee6a8);
}

/* ─── EMPTY STATE ──────────────────────────── */
.empty-state {
    background: var(--brand-bg-card, #0d2e22);
    border: 1px solid var(--brand-border, #1a4d38);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    color: #6a9e7e;
    font-size: 16px;
}

/* ─── FOOTER ───────────────────────────────── */
.footer {
    background: #0d2e22;
    border-top: 1px solid var(--brand-border, #1a4d38);
    margin-top: 48px;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

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

.footer-desc {
    font-size: 14px;
    color: #6a9e7e;
    line-height: 1.6;
}

.footer-heading {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f5faf6;
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: var(--brand-text-muted, #8ab89e);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--brand-primary, #2ee6a8);
}

.footer-bottom {
    border-top: 1px solid var(--brand-border, #1a4d38);
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    color: #6a9e7e;
}

/* ─── RESPONSIVE ───────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .logo-slogan {
        display: none;
    }

    .hero-stats {
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* ── Header & Hamburger ─────────────────── */
    .header-container {
        height: 56px;
        padding: 0 16px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-badge {
        font-size: 11px;
        padding: 2px 7px;
    }

    .logo-slogan {
        display: none;
    }

    /* Show hamburger toggle */
    .nav-toggle {
        display: flex !important;
    }

    /* Hide desktop-only nav items */
    .nav-links .nav-desktop-only {
        display: none !important;
    }

    /* Full-width dropdown navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #0d2e22;
        border-bottom: 2px solid var(--brand-border, #1a4d38);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
        z-index: 150;
        box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    }

    .nav-links.is-open {
        display: flex !important;
    }

    .nav-links .nav-link,
    .nav-links .btn {
        width: 100%;
        text-align: left;
        padding: 14px 24px;
        border-radius: 0;
        font-size: 14px;
        border-bottom: 1px solid #1a4d3830;
    }

    .nav-links .btn-primary {
        margin: 8px 16px;
        width: calc(100% - 32px);
        text-align: center;
        border-radius: 8px;
        padding: 12px;
    }

    .nav-mobile-only {
        display: block !important;
    }

    /* ── Hero ───────────────────────────────── */
    .hero {
        padding: 32px 16px;
        margin: 12px 0;
        border-radius: 12px;
    }

    .hero-title {
        font-size: 20px;
        line-height: 1.4;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .search-box {
        border-radius: 12px;
        padding: 4px 4px 4px 12px;
    }

    .search-input {
        font-size: 14px;
        padding: 8px 0;
    }

    .btn-search {
        border-radius: 8px;
        padding: 10px 20px;
        font-size: 12px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
    }

    .hero-stat {
        min-width: unset;
        width: 100%;
        padding: 12px 16px;
        border-radius: 10px;
    }

    .hero-stat-value {
        font-size: 18px;
    }

    .hero-stat-label {
        font-size: 9px;
    }

    /* ── Main Content ──────────────────────── */
    .main-content {
        padding: 0 12px 32px;
    }

    /* ── Filters & Sort ────────────────────── */
    .filter-bar {
        margin-bottom: 12px;
    }

    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .filter-pills::-webkit-scrollbar {
        display: none;
    }

    .pill {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 12px;
        flex-shrink: 0;
    }

    .list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .list-title {
        font-size: 16px;
    }

    .sort-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sort-link {
        font-size: 12px;
        padding: 5px 10px;
        white-space: nowrap;
    }

    /* ── Complaint Card (mobile) ────────────── */
    .cv-card {
        padding: 14px;
        border-radius: 12px;
    }

    .complaint-list {
        gap: 12px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .card-status {
        align-self: flex-start;
    }

    .avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .user-name {
        font-size: 13px;
    }

    .card-meta {
        font-size: 11px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-excerpt {
        font-size: 13px;
    }

    .read-more {
        font-size: 12px;
    }

    .brand-reply-preview {
        padding: 12px;
        border-radius: 10px;
    }

    .reply-header {
        gap: 6px;
    }

    .reply-brand-avatar {
        font-size: 10px;
        padding: 3px 6px;
    }

    .reply-brand-name {
        font-size: 13px;
    }

    .reply-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .reply-time {
        font-size: 11px;
    }

    .reply-text {
        font-size: 13px;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-support {
        font-size: 12px;
        padding: 5px 12px;
    }

    .stat-item {
        font-size: 12px;
    }

    /* ── Status Badge ──────────────────────── */
    .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* ── Sidebar ───────────────────────────── */
    .sidebar-widget {
        padding: 16px;
        border-radius: 12px;
    }

    .widget-title {
        font-size: 12px;
    }

    .stat-row {
        padding: 8px 0;
    }

    .stat-label,
    .stat-value {
        font-size: 13px;
    }

    /* ── Pagination ────────────────────────── */
    .pagination {
        gap: 3px;
    }

    .page-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .pagination-info {
        font-size: 12px;
    }

    /* ── Auth / Create Pages ────────────────── */
    .auth-page, .create-page {
        padding: 24px 12px;
    }

    .auth-card, .create-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .auth-title {
        font-size: 22px;
    }

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

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .steps {
        gap: 8px;
        padding: 12px;
    }

    .step-text {
        font-size: 11px;
    }

    /* ── Detail Page ───────────────────────── */
    .detail-page, .profile-page, .about-page {
        margin: 12px auto;
        padding: 0 4px;
    }

    .detail-card, .about-card, .profile-card {
        padding: 16px;
        border-radius: 12px;
    }

    .detail-title {
        font-size: 18px;
    }

    .detail-body {
        padding: 16px;
        font-size: 14px;
    }

    .detail-meta {
        gap: 8px;
    }

    .detail-author {
        font-size: 12px;
    }

    .detail-support {
        flex-wrap: wrap;
    }

    .btn-support-detail {
        padding: 8px 16px;
        font-size: 13px;
    }

    .reply-card {
        padding: 14px;
    }

    .reply-message {
        font-size: 14px;
    }

    /* ── Profile ───────────────────────────── */
    .profile-header {
        gap: 14px;
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .profile-name {
        font-size: 20px;
    }

    .section-title {
        font-size: 17px;
        margin: 20px 0 12px;
    }

    /* ── About ─────────────────────────────── */
    .about-title {
        font-size: 24px;
    }

    .about-subtitle {
        font-size: 18px;
    }

    .about-steps li, .about-principles li {
        font-size: 14px;
    }

    /* ── Footer ────────────────────────────── */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 16px;
    }

    .footer-bottom {
        padding: 16px;
        font-size: 12px;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .hero-title {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .search-box {
        flex-direction: column;
        border-radius: 12px;
        padding: 8px;
        gap: 8px;
    }

    .search-input {
        width: 100%;
        text-align: center;
    }

    .btn-search {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-stat {
        padding: 10px 12px;
    }

    .filter-pills .pill {
        font-size: 11px;
        padding: 5px 10px;
    }

    .card-title {
        font-size: 13px;
    }

    .auth-card, .create-card {
        padding: 16px 12px;
    }
}

