/* ============================================
   TRSRO Hizmet — Premium Dark Theme
   ============================================ */

:root {
    --bg-primary: #08080f;
    --bg-secondary: #0f0f1a;
    --bg-card: rgba(18, 18, 30, 0.7);
    --bg-card-hover: rgba(24, 24, 40, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --gold-rgb: 186, 148, 73;
    --gold: #ba9449;
    --gold-light: #e6c57e;
    --gold-dark: #7e5f2d;
    --amber: #9a7338;
    --border-accent: rgba(var(--gold-rgb), 0.25);

    --text-primary: #f0f0f5;
    --text-secondary: #9494a8;
    --text-muted: #5c5c72;

    --success: #2ecc71;
    --danger: #e74c3c;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-glow: 0 0 60px rgba(var(--gold-rgb), 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

body.page-home {
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

.text-gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---- Buttons ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: #0a0a0f;
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: #0a0a0f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.3);
}

.btn-outline-light {
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: all var(--transition);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-nav-auth {
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: var(--radius-sm);
    padding: 0.38rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.2;
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid rgba(124, 108, 255, 0.35);
    color: #c4bcff;
    background: rgba(124, 108, 255, 0.1);
}

.btn-nav-auth:hover,
.btn-nav-auth:focus {
    background: rgba(124, 108, 255, 0.18);
    border-color: rgba(124, 108, 255, 0.55);
    color: #ddd8ff;
}

.profile-menu {
    position: relative;
}

.profile-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(124, 108, 255, 0.35);
    background: rgba(124, 108, 255, 0.12);
    color: #c4bcff;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.profile-toggle:hover,
.profile-toggle:focus,
.profile-menu.open .profile-toggle {
    background: rgba(124, 108, 255, 0.22);
    border-color: rgba(124, 108, 255, 0.55);
    color: #ddd8ff;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: rgba(14, 14, 24, 0.98);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1100;
}

.profile-menu.open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.35rem;
}

.profile-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.profile-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.profile-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.profile-logout:hover,
.profile-logout:focus {
    background: rgba(231, 76, 60, 0.1);
    color: #f1948a;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 0.35rem;
}

.profile-link:hover {
    background: rgba(124, 108, 255, 0.1);
    color: #c4bcff;
}

.profile-link-notifications,
.profile-link-messages {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: #fff;
    border: 2px solid var(--bg-primary, #0a0a12);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.notification-dot {
    width: 8px;
    height: 8px;
    margin-left: auto;
    background: #e74c3c;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25);
}

#notificationsPanel.panel-updated,
#messagesInboxPanel.panel-updated,
#messagesThreadPanel.panel-updated,
#applicationsPanel.panel-updated,
#adminApplicationsPanel.panel-updated {
    animation: panelRefreshPulse 0.6s ease;
}

@keyframes panelRefreshPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.35);
    }
    100% {
        box-shadow: 0 0 0 16px rgba(var(--gold-rgb), 0);
    }
}

/* ---- Applications Page ---- */
.applications-section {
    padding: 7rem 0 4rem;
    min-height: calc(100vh - 80px);
}

.applications-header {
    margin-bottom: 2.5rem;
}

.applications-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.applications-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.applications-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.applications-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.applications-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.application-filter {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.application-filter:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.application-filter.active {
    background: rgba(var(--gold-rgb), 0.12);
    border-color: var(--border-accent);
    color: var(--gold-light);
}

.applications-filter-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.applications-filter-empty p {
    margin: 0;
}

.applications-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.application-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color var(--transition);
}

.application-card:hover {
    border-color: var(--border-accent);
}

.application-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.application-id {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--gold-light);
}

.application-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}

.status-pending {
    background: rgba(var(--gold-rgb), 0.12);
    color: var(--gold-light);
    border: 1px solid var(--border-accent);
}

.status-progress {
    background: rgba(52, 152, 219, 0.12);
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.25);
}

.status-completed {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.status-cancelled {
    background: rgba(231, 76, 60, 0.12);
    color: #f1948a;
    border: 1px solid rgba(231, 76, 60, 0.25);
}

.status-listed {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.listing-card-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
}

.listing-card-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.listing-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    background: rgba(var(--gold-rgb), 0.1);
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.listing-card-thumb-wrap {
    margin-top: 0.25rem;
}

.listing-card-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.listing-admin-images {
    margin-top: 0.25rem;
}

.listing-admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.listing-admin-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition), transform var(--transition);
}

.listing-admin-image-link:hover {
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.listing-admin-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.btn-approve-advert {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.35);
    border-radius: var(--radius-md);
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.btn-approve-advert:hover {
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
    color: var(--success);
}

.btn-approve-advert:disabled,
.btn-reject-advert:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reject-advert {
    background: rgba(231, 76, 60, 0.12);
    color: #f1948a;
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: var(--radius-md);
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.btn-reject-advert:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #f1948a;
}

.btn-edit-listing {
    background: rgba(var(--gold-rgb), 0.12);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.35);
    border-radius: var(--radius-md);
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-edit-listing:hover {
    background: rgba(var(--gold-rgb), 0.2);
    border-color: rgba(var(--gold-rgb), 0.5);
    color: var(--gold-light);
}

.btn-delete-listing {
    background: rgba(231, 76, 60, 0.12);
    color: #f1948a;
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: var(--radius-md);
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.btn-delete-listing:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #f1948a;
}

.btn-delete-listing:disabled,
.btn-remove-published-advert:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-remove-published-advert {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #ff8a95;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-remove-published-advert:hover:not(:disabled) {
    background: rgba(220, 53, 69, 0.28);
    border-color: rgba(220, 53, 69, 0.65);
    color: #ffb3bb;
}
.btn-edit-listing:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.listing-my-actions {
    width: 100%;
}

.application-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.application-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.meta-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.application-parties {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.party-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.party-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.party-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.party-arrow {
    color: var(--gold);
    font-weight: 700;
}

.application-message {
    margin-bottom: 1rem;
}

.application-message p {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.application-conference {
    margin-bottom: 1rem;
}

.conference-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.conference-input {
    flex: 1;
    min-width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
}

.conference-input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.12);
    outline: none;
}

.conference-input-locked,
.conference-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}

.application-conference-locked .meta-label::after {
    content: " (Kilitli)";
    color: var(--text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.application-conference-locked .conference-input {
    margin-top: 0.5rem;
}

.conference-feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.conference-feedback.is-success {
    color: var(--success);
}

.conference-feedback.is-error {
    color: #f1948a;
}

.conference-link {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--gold-light);
    font-size: 0.9rem;
    word-break: break-all;
    text-decoration: none;
}

.conference-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

.conference-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(var(--gold-rgb), 0.15);
    color: var(--gold-light);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.conference-join-btn:hover {
    background: rgba(var(--gold-rgb), 0.25);
    border-color: var(--gold);
    color: var(--gold);
}

.conference-pending {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.conference-finished {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.conference-cancelled {
    margin: 0.35rem 0 0;
    color: #f1948a;
    font-size: 0.9rem;
}

.application-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.application-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-complete-application {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.35);
    border-radius: var(--radius-md);
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.btn-complete-application:hover {
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
    color: var(--success);
}

.btn-complete-application:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel-application {
    background: rgba(231, 76, 60, 0.12);
    color: #f1948a;
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: var(--radius-md);
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.btn-cancel-application:hover {
    background: rgba(231, 76, 60, 0.22);
    border-color: rgba(231, 76, 60, 0.5);
    color: #f1948a;
}

.btn-cancel-application:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.application-action-feedback {
    font-size: 0.85rem;
}

.application-action-feedback.is-success {
    color: var(--success);
}

.application-action-feedback.is-error {
    color: #f1948a;
}

.application-amounts {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.application-amounts-left {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.application-iban {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.application-iban .amount-item {
    align-items: center;
    text-align: center;
}

.application-iban .meta-label {
    width: 100%;
    text-align: center;
}

.iban-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.02em;
}

.iban-bank,
.iban-holder {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.amount-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.amount-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.amount-value.commission {
    color: var(--gold-light);
}

.amount-value.total {
    color: var(--text-primary);
}

.applications-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.applications-empty-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.applications-empty h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.applications-empty p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

@media (max-width: 575.98px) {
    .applications-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .applications-toolbar-actions {
        justify-content: space-between;
        width: 100%;
    }

    .application-parties {
        flex-direction: column;
        align-items: flex-start;
    }

    .party-arrow {
        transform: rotate(90deg);
    }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(8, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.site-header .navbar {
    padding: 1rem 0;
}

.navbar-container {
    position: relative;
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
        justify-content: center;
    }

    .navbar-nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }

    .navbar-actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        margin-left: auto;
    }

    .navbar-actions .btn {
        font-size: 0.78rem;
        padding: 0.38rem 0.7rem;
        line-height: 1.2;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 0;
}

.brand-logo {
    display: block;
    height: 42px;
    width: auto;
    max-width: min(240px, 52vw);
    object-fit: contain;
}

.brand-icon {
    color: var(--gold);
    display: flex;
}

.brand-accent {
    color: var(--gold);
}

.site-header .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.84rem;
    padding: 0.5rem 0.7rem !important;
    transition: color var(--transition);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--text-primary) !important;
}

.site-header .nav-link.active {
    color: var(--gold-light) !important;
}

.navbar-toggler {
    border-color: var(--border-subtle);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28240, 240, 245, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .brand-logo {
        height: 36px;
        max-width: min(200px, 62vw);
    }

    .navbar-collapse {
        background: rgba(12, 12, 22, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.75rem;
    }

    .navbar-nav-center {
        align-items: center;
        margin-bottom: 1rem;
    }

    .navbar-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .navbar-actions .btn {
        width: 100%;
    }
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.25) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 80, 200, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(var(--gold-rgb), 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Hero Card */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}

.hero-card-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--success);
}

.hero-card-id {
    color: var(--text-muted);
    font-family: monospace;
}

.hero-card-body {
    padding: 1.5rem 1.25rem;
}

.trade-party {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.party-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
}

.party-avatar.seller {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.party-avatar.buyer {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}

.party-info {
    display: flex;
    flex-direction: column;
}

.party-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.party-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.trade-arrow {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.trade-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(var(--gold-rgb), 0.06);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
}

.item-icon {
    font-size: 1.5rem;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.trade-item.trade-item-agent {
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.25);
}

.trade-item.trade-item-agent .item-name {
    color: var(--success);
}

.party-avatar.agent {
    background: rgba(var(--gold-rgb), 0.15);
    color: var(--gold-light);
}

.hero-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.progress-bar-custom {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    border-radius: 2px;
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Trust Bar ---- */
.trust-bar {
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--gold-rgb), 0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    color: var(--gold);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.trust-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Sections ---- */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ---- Step Cards ---- */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(var(--gold-rgb), 0.1);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--gold-rgb), 0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Flow Summary ---- */
.flow-summary {
    margin-top: 3rem;
}

.flow-summary-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.flow-label {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
}

.flow-arrow {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
}

.flow-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(var(--gold-rgb), 0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    min-width: 180px;
}

.flow-center strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold-light);
}

.flow-center span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (min-width: 1200px) {
    .steps-grid .col-xl {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ---- Service Cards ---- */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.service-card.featured {
    border-color: var(--border-accent);
    background: rgba(var(--gold-rgb), 0.04);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    border-radius: 100px;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.service-icon.gold {
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
}

.service-icon.item {
    background: rgba(100, 80, 200, 0.1);
    color: #8b7cf0;
}

.service-icon.char {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* ---- Security ---- */
.security-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.security-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.security-check {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.1);
    border-radius: var(--radius-sm);
    color: var(--success);
    flex-shrink: 0;
}

.security-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.security-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.security-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px;
}

.security-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border-accent);
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation: ring-pulse 3s ease-in-out infinite;
}

.ring-2 {
    width: 280px;
    height: 280px;
    animation: ring-pulse 3s ease-in-out infinite 0.5s;
}

.ring-3 {
    width: 360px;
    height: 360px;
    animation: ring-pulse 3s ease-in-out infinite 1s;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.security-shield {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
    color: var(--gold);
}

.security-shield span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold-light);
}

/* ---- FAQ ---- */
.faq-accordion .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(var(--gold-rgb), 0.05);
    color: var(--gold-light);
}

.faq-accordion .accordion-button::after {
    filter: invert(0.7);
}

.faq-accordion .accordion-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0 1.5rem 1.25rem;
}

/* ---- CTA ---- */
.cta-section {
    padding: 4rem 0 6rem;
}

.cta-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 3rem;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-card p {
    color: var(--text-secondary);
    margin: 0;
    position: relative;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-server {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--success);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
}

/* ---- Reveal Animation ---- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
}

.js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .section {
        padding: 4rem 0;
    }

    .cta-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .security-visual {
        height: 280px;
        margin-top: 2rem;
    }

    .ring-3 { width: 260px; height: 260px; }
    .ring-2 { width: 200px; height: 200px; }
    .ring-1 { width: 140px; height: 140px; }

    .flow-summary-inner {
        flex-direction: column;
        text-align: center;
    }

    .flow-step {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ---- Auth Modal ---- */
.auth-modal .modal-dialog {
    max-width: 440px;
}

.auth-modal-content {
    background: linear-gradient(180deg, #12121f 0%, #0d0d18 100%);
    border: 1px solid rgba(124, 108, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 108, 255, 0.08);
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.35rem;
    border-radius: 8px;
    transition: all var(--transition);
    line-height: 0;
}

.auth-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.auth-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(124, 108, 255, 0.25);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-input:focus {
    outline: none;
    border-color: rgba(124, 108, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.12);
}

.auth-input.auth-input-invalid {
    border-color: rgba(239, 68, 68, 0.85);
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.auth-input.auth-input-invalid:focus {
    border-color: rgba(239, 68, 68, 0.95);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.auth-field.auth-field-invalid label {
    color: #ef4444;
}

.auth-resend-verification {
    margin-top: -0.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-resend-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-resend-btn:hover {
    color: #9b8cff;
}

.auth-resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: -0.25rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7c6cff;
    cursor: pointer;
}

.auth-link {
    color: #9d93ff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.auth-link:hover {
    color: #c4bcff;
}

.auth-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-top: 0.25rem;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(90deg, #5b8def 0%, #7c6cff 50%, #9b5de5 100%);
    box-shadow: 0 8px 24px rgba(124, 108, 255, 0.35);
    transition: all var(--transition);
    cursor: pointer;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(124, 108, 255, 0.45);
}

.auth-footer {
    text-align: center;
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-alert-success {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #6ee7a0;
}

.auth-alert-error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #f1948a;
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-textarea {
    resize: vertical;
    min-height: 100px;
}

.price-input-wrap {
    position: relative;
}

.price-currency {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: none;
}

.price-input {
    padding-left: 2.25rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.auth-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239494a8'%3e%3cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 14px;
    padding-right: 2.25rem;
    cursor: pointer;
}

.auth-select option {
    background: #12121f;
    color: var(--text-primary);
}

.auth-input-readonly {
    background: rgba(255, 255, 255, 0.02);
    color: var(--gold-light);
    cursor: not-allowed;
    opacity: 0.85;
}

.application-modal .auth-header {
    margin-bottom: 1.5rem;
}

.auth-modal .modal-backdrop.show {
    opacity: 0.75;
}

/* ---- Listing Create Page ---- */
.listing-type-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto;
}

.listing-type-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 420px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    background: #11111a;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.listing-type-card:hover,
.listing-type-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(var(--gold-rgb), 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    outline: none;
}

.listing-type-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.listing-type-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 15, 0.15) 0%, rgba(8, 8, 15, 0.35) 45%, rgba(8, 8, 15, 0.72) 100%);
}

.listing-type-card-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.listing-selected-type {
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

.listing-step-hint {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.listing-form-panel-hidden {
    display: none !important;
}

.listing-form:not([data-listing-kind="Item"]):not([data-listing-kind="Hesap"]) .listing-field-item-only {
    display: none;
}

.listing-form:not([data-listing-kind="Gold"]) .listing-field-gold-only {
    display: none;
}

.listing-field-help {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.listing-image-upload {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.listing-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.75rem;
}

.listing-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
}

.listing-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-image-remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.6rem;
    height: 1.6rem;
    border: none;
    border-radius: 999px;
    background: rgba(8, 8, 15, 0.78);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-image-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: fit-content;
    min-width: 160px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(var(--gold-rgb), 0.45);
    background: rgba(var(--gold-rgb), 0.06);
    color: var(--gold-light);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.listing-image-add:hover:not(:disabled) {
    background: rgba(var(--gold-rgb), 0.12);
    border-color: rgba(var(--gold-rgb), 0.65);
    transform: translateY(-1px);
}

.listing-image-add:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.listing-image-add-icon {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.listing-image-help,
.listing-image-count {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.listing-image-count {
    color: var(--text-secondary);
    font-weight: 600;
}

.listing-create-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.listing-create-card,
.listing-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.listing-info-card + .listing-info-card {
    margin-top: 1rem;
}

.listing-info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.listing-info-card p,
.listing-info-card li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.listing-info-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.listing-info-card-accent {
    border-color: var(--border-accent);
    background: rgba(var(--gold-rgb), 0.05);
}

.listing-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.listing-form-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.listing-form-section-last {
    padding-bottom: 0;
    border-bottom: none;
}

.listing-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.listing-form-section-head h2 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.listing-form-section-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.listing-form-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(var(--gold-rgb), 0.12);
    border: 1px solid var(--border-accent);
    color: var(--gold-light);
    font-weight: 700;
    flex-shrink: 0;
}

.listing-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
}

.listing-form-span-2 {
    grid-column: span 2;
}

.listing-field-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
}

.listing-phone-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.listing-phone-choice-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.listing-phone-choice-option:has(input:checked) {
    border-color: rgba(var(--gold-rgb), 0.55);
    background: rgba(var(--gold-rgb), 0.12);
    color: var(--text-primary);
}

.listing-phone-choice-option input {
    accent-color: var(--gold);
}

.listing-textarea {
    min-height: 160px;
    resize: vertical;
}

.listing-terms {
    margin-bottom: 1.25rem;
}

.listing-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.listing-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 148px;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: all var(--transition);
    cursor: pointer;
}

.listing-form-btn-secondary {
    border: 1px solid rgba(var(--gold-rgb), 0.35);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.listing-form-btn-secondary:hover,
.listing-form-btn-secondary:focus {
    background: rgba(var(--gold-rgb), 0.08);
    border-color: rgba(var(--gold-rgb), 0.55);
    color: var(--gold-light);
    transform: translateY(-1px);
}

.listing-form-btn-primary {
    border: none;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0a0a0f;
    box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.25);
}

.listing-form-btn-primary:hover:not(:disabled),
.listing-form-btn-primary:focus:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: #0a0a0f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.35);
}

.listing-form-btn-primary:disabled,
.listing-form-btn-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .listing-type-picker {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .listing-type-card {
        min-height: 320px;
    }

    .listing-create-layout {
        grid-template-columns: 1fr;
    }

    .listing-form-grid {
        grid-template-columns: 1fr;
    }

    .listing-form-span-2 {
        grid-column: span 1;
    }

    .listing-form-actions {
        flex-direction: column-reverse;
    }

    .listing-form-actions .listing-form-btn {
        width: 100%;
        min-width: 0;
    }
}

/* ---- Public Listings ---- */
.listings-public-section .applications-header {
    margin-bottom: 2rem;
}

.listings-intro-notice {
    width: 100%;
    max-width: none;
    margin-top: 0.75rem;
    padding: 1.15rem 1.25rem;
    background: rgba(var(--gold-rgb), 0.08);
    border: 1px solid rgba(var(--gold-rgb), 0.22);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.listings-intro-notice p {
    margin: 0;
}

.listings-intro-notice p + p {
    margin-top: 0.85rem;
}

.listings-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.listings-filters {
    flex: 1;
}

.listings-filter-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.listings-filter-empty p {
    margin: 0;
}

.listings-public-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.listings-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.listings-load-more-btn {
    min-width: 220px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.listings-load-more-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.listing-public-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.listing-public-card-link:hover .listing-public-card,
.listing-public-card-link:focus .listing-public-card {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.listing-public-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.listing-public-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-public-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--gold-light);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.listing-public-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.listing-public-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.15rem 1.15rem 1rem;
    flex: 1;
}

.listing-public-card-title {
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.45em * 2);
}

.listing-public-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.listing-public-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.listing-public-meta-label {
    color: var(--text-muted);
    font-weight: 500;
}

.listing-public-meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.listing-public-description-wrap {
    min-height: calc(1.55em * 2);
}

.listing-public-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.listing-public-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.listing-public-price-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.listing-public-price {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
}

.listing-public-stock-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.listing-public-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: auto;
}

.listing-public-id {
    font-family: monospace;
    color: var(--gold-light);
}

@media (max-width: 1199.98px) {
    .listings-public-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .listings-public-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .listings-public-grid {
        grid-template-columns: 1fr;
    }

    .listings-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

.listing-public-card-link {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.listing-public-card-link:hover,
.listing-public-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.listing-public-card-link:focus-visible .listing-public-card {
    outline: 2px solid rgba(var(--gold-rgb), 0.65);
    outline-offset: 3px;
}

/* ---- Public WTB ---- */
.section-tag-wtb {
    color: #a5b4fc;
    border-color: rgba(124, 108, 255, 0.35);
    background: rgba(124, 108, 255, 0.1);
}

.wtb-public-section .applications-header {
    margin-bottom: 2rem;
}

.wtb-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.wtb-header-subtitle {
    max-width: 720px;
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.wtb-header-actions {
    flex-shrink: 0;
}

.btn-wtb-create:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.wtb-intro-notice {
    width: 100%;
    max-width: none;
    margin-top: 0.75rem;
    padding: 1.15rem 1.25rem;
    background: rgba(124, 108, 255, 0.08);
    border: 1px solid rgba(124, 108, 255, 0.22);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.wtb-intro-notice p {
    margin: 0;
}

.wtb-intro-notice p + p {
    margin-top: 0.85rem;
}

.wtb-public-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wtb-list-item {
    padding: 1rem 1.15rem;
    background: var(--bg-card);
    border: 1px solid rgba(124, 108, 255, 0.16);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), background var(--transition);
}

.wtb-list-item:hover {
    border-color: rgba(124, 108, 255, 0.32);
    background: rgba(124, 108, 255, 0.04);
}

.wtb-list-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.wtb-list-item-meta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.wtb-list-date {
    margin-left: auto;
    flex-shrink: 0;
}

.wtb-list-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wtb-send-message-btn {
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(var(--gold-rgb), 0.35);
    border-radius: 999px;
    background: rgba(var(--gold-rgb), 0.12);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.wtb-send-message-btn:hover {
    background: rgba(var(--gold-rgb), 0.2);
    border-color: rgba(var(--gold-rgb), 0.55);
    color: #f5dfa0;
}

.wtb-list-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.wtb-list-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.wtb-list-value {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.wtb-list-text {
    margin: 0;
    flex: 1;
    min-width: 0;
    line-height: 1.65;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: pre-wrap;
    word-break: break-word;
}

.wtb-empty-icon {
    color: #c4bcff;
}

@media (max-width: 575.98px) {
    .wtb-header-row {
        flex-direction: column;
    }

    .wtb-header-actions,
    .btn-wtb-create {
        width: 100%;
    }

    .wtb-list-item-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    .wtb-list-date {
        margin-left: 0;
    }

    .wtb-list-body {
        flex-direction: column;
        align-items: stretch;
    }

    .wtb-send-message-btn {
        align-self: flex-end;
    }
}

/* ---- Listing Detail ---- */
.listing-detail-section {
    padding: 7rem 0 4rem;
    min-height: calc(100vh - 80px);
}

.listing-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.listing-detail-back:hover,
.listing-detail-back:focus {
    color: var(--gold-light);
}

.listing-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
}

.listing-detail-gallery-card,
.listing-detail-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.listing-detail-info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.listing-detail-carousel {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.listing-detail-carousel-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
    display: block;
}

.listing-detail-carousel-control {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    opacity: 1;
    border-radius: 999px;
    background: rgba(8, 8, 15, 0.72);
    border: 1px solid rgba(var(--gold-rgb), 0.35);
}

.listing-detail-carousel-control:hover {
    background: rgba(8, 8, 15, 0.9);
}

.listing-detail-carousel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--gold-light);
}

.listing-detail-counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(8, 8, 15, 0.78);
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 2;
}

.listing-detail-thumbs {
    display: flex;
    gap: 0.65rem;
    padding: 1rem 1.15rem 1.15rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.listing-detail-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
}

.listing-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-detail-thumb:hover,
.listing-detail-thumb.active {
    border-color: rgba(var(--gold-rgb), 0.75);
    transform: translateY(-1px);
}

.listing-detail-gallery-empty {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--gold-light);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.listing-detail-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.listing-detail-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.listing-detail-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.35;
    margin: 0 0 1.25rem;
}

.listing-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.listing-detail-phone {
    color: var(--gold);
    text-decoration: none;
}

.listing-detail-phone:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.listing-detail-body-fill {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.listing-detail-description {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.listing-detail-price-box {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(var(--gold-rgb), 0.08);
    border: 1px solid rgba(var(--gold-rgb), 0.22);
    flex-shrink: 0;
}

.listing-detail-price {
    display: block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-top: 0.15rem;
}

.listing-detail-stock {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(var(--gold-rgb), 0.18);
}

.listing-detail-description p {
    margin: 0.55rem 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
    white-space: pre-wrap;
}

.listing-detail-notice {
    display: flex;
    gap: 1.15rem;
    margin-top: 1.75rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(231, 76, 60, 0.35);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(var(--gold-rgb), 0.08) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.listing-detail-notice-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #f1948a;
}

.listing-detail-notice-content {
    flex: 1;
    min-width: 0;
}

.listing-detail-notice-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: #f5b7b1;
}

.listing-detail-notice-lead {
    margin: 0 0 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.55;
}

.listing-detail-notice-list {
    margin: 0 0 1.15rem;
    padding-left: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.listing-detail-notice-list li + li {
    margin-top: 0.45rem;
}

.listing-detail-notice-list strong {
    color: var(--text-primary);
}

.listing-detail-notice-footnote {
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--gold-rgb), 0.22);
    background: rgba(var(--gold-rgb), 0.08);
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.92rem;
}

.listing-detail-notice-footnote strong {
    color: var(--text-primary);
}

.listing-detail-notice-btn {
    font-weight: 600;
}

.listing-detail-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.listing-detail-notice-modal {
    margin-top: 0;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.listing-notice-modal .modal-dialog {
    max-width: 720px;
}

body:has(#listingNoticeModal.show) .modal-backdrop.show {
    opacity: 1;
    background-color: var(--bg-primary);
}

.listing-notice-modal-content {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(231, 76, 60, 0.35);
    background: linear-gradient(135deg, #1f1418 0%, #12121f 52%, #17140f 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.listing-notice-modal-content .auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

@media (max-width: 575.98px) {
    .listing-detail-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-detail-notice-btn {
        width: 100%;
    }

    .listing-detail-notice-actions {
        width: 100%;
    }

    .listing-notice-modal-content {
        padding: 1.15rem;
    }
}

@media (max-width: 991.98px) {
    .listing-detail-layout {
        grid-template-columns: 1fr;
    }

    .listing-detail-info-card {
        height: auto;
    }

    .listing-detail-body-fill {
        flex: none;
    }
}

.auth-panel {
    animation: authFadeIn 0.25s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Auth placeholder pages ---- */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
}

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.auth-card p {
    margin: 0;
    color: var(--text-secondary);
}

.admin-charts-section {
    padding-bottom: 3rem;
}

.admin-charts-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 100%;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.admin-stat-value {
    font-size: 1.85rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.admin-stat-card-users {
    border-color: rgba(var(--gold-rgb), 0.35);
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.08) 0%, var(--bg-card) 100%);
}

.admin-stat-card-pending {
    border-color: rgba(var(--gold-rgb), 0.25);
}

.admin-stat-card-progress {
    border-color: rgba(52, 152, 219, 0.25);
}

.admin-stat-card-completed {
    border-color: rgba(46, 204, 113, 0.25);
}

.admin-stat-card-cancelled {
    border-color: rgba(231, 76, 60, 0.25);
}

.admin-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.admin-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.admin-chart-card-head h2 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.admin-chart-card-head p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-chart-wrap {
    position: relative;
    height: 320px;
}

@media (max-width: 1199.98px) {
    .admin-charts-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-charts-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-charts-grid {
        grid-template-columns: 1fr;
    }

    .admin-chart-wrap {
        height: 280px;
    }
}

@media (max-width: 479.98px) {
    .admin-charts-summary {
        grid-template-columns: 1fr;
    }
}

.verify-email-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.verify-email-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 108, 255, 0.2);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.verify-email-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.verify-email-icon.is-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.verify-email-icon.is-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.verify-email-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.verify-email-card p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.verify-email-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.verify-email-btn {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    text-align: center;
    text-decoration: none;
}

.verify-email-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.verify-email-link:hover {
    text-decoration: underline;
}

.settings-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.settings-sidebar {
    position: sticky;
    top: 6.5rem;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 108, 255, 0.18);
    border-radius: 16px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
}

.settings-nav-item:hover,
.settings-nav-item.active {
    background: rgba(124, 108, 255, 0.12);
    color: #d8d2ff;
}

.settings-content {
    min-width: 0;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-panel-header {
    margin-bottom: 1.25rem;
}

.settings-panel-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.settings-panel-header p {
    color: var(--text-secondary);
    margin: 0;
}

.settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 108, 255, 0.18);
    border-radius: 18px;
    padding: 1.5rem;
}

.settings-card-header {
    margin-bottom: 1.25rem;
}

.settings-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.settings-card-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.92rem;
}

.settings-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.settings-alert.auth-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.settings-alert.auth-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.settings-form {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

.settings-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.settings-submit {
    width: fit-content;
    min-width: 180px;
}

@media (max-width: 767.98px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        position: static;
    }

    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .settings-nav-item {
        white-space: nowrap;
        width: auto;
    }

    .settings-submit {
        width: 100%;
    }
}

.messages-inbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.messages-inbox-item {
    position: relative;
    display: block;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.messages-inbox-item:hover {
    border-color: rgba(124, 108, 255, 0.35);
    background: rgba(124, 108, 255, 0.08);
    color: inherit;
    transform: translateY(-1px);
}

.messages-inbox-item-unread {
    border-color: rgba(124, 108, 255, 0.28);
    background: rgba(124, 108, 255, 0.06);
}

.messages-inbox-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.messages-inbox-username {
    font-weight: 700;
    color: var(--text-primary);
}

.messages-inbox-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.messages-inbox-context {
    display: inline-flex;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(124, 108, 255, 0.14);
    color: #c4bcff;
    font-size: 0.75rem;
    font-weight: 600;
}

.messages-inbox-preview {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.messages-inbox-unread-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.messages-thread-back {
    display: inline-flex;
    margin-bottom: 0.65rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.messages-thread-back:hover {
    color: #c4bcff;
}

.messages-thread-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1rem 0.75rem;
}

.messages-thread-empty {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    text-align: center;
}

.messages-thread-bubble {
    width: fit-content;
    max-width: min(78%, 680px);
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.messages-thread-bubble-mine {
    align-self: flex-end;
    background: rgba(124, 108, 255, 0.14);
    border-color: rgba(124, 108, 255, 0.24);
}

.messages-thread-bubble-other {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
}

.messages-thread-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.messages-thread-bubble-author {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.messages-thread-bubble-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.messages-thread-bubble-body {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.55;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.messages-thread-compose {
    flex-shrink: 0;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.messages-compose-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.messages-compose-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.messages-compose-input {
    flex: 1;
    min-height: 46px;
    max-height: 120px;
    resize: none;
    margin: 0;
}

.messages-compose-submit {
    flex-shrink: 0;
    min-width: 96px;
    padding: 0.65rem 1.1rem;
}

body.page-message-thread .messages-thread-section {
    padding: 7rem 0 2rem;
    min-height: auto;
    height: auto;
}

body.page-message-thread .messages-thread-shell {
    display: flex;
    flex-direction: column;
}

body.page-message-thread .messages-thread-header {
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

body.page-message-thread .messages-thread-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.page-message-thread .messages-thread-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin-bottom: 0;
}

body.page-message-thread .messages-thread-context-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(124, 108, 255, 0.14);
    color: #c4bcff;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

body.page-message-thread .messages-thread-card {
    display: flex;
    flex-direction: column;
    max-height: clamp(420px, calc(100dvh - 19rem), 760px);
    min-height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

body.page-message-thread .messages-thread-panel {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.page-message-thread .messages-thread-list {
    flex: 1;
    min-height: 0;
}

body.page-message-thread .messages-thread-list::-webkit-scrollbar {
    width: 8px;
}

body.page-message-thread .messages-thread-list::-webkit-scrollbar-thumb {
    background: rgba(124, 108, 255, 0.35);
    border-radius: 999px;
}

@media (max-width: 575.98px) {
    .messages-inbox-item-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    body.page-message-thread .messages-thread-section {
        padding: 6.5rem 0 1.5rem;
    }

    body.page-message-thread .messages-thread-card {
        max-height: calc(100dvh - 17rem);
        min-height: 360px;
    }

    body.page-message-thread .messages-thread-header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .messages-compose-row {
        flex-direction: column;
        align-items: stretch;
    }

    .messages-compose-submit {
        width: 100%;
    }

    .messages-thread-bubble {
        max-width: 92%;
    }
}

