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

:root {
    --brand:      #4f46e5;
    --brand-dark: #3730a3;
    --brand-light:#ede9fe;
    --primary:    #4f46e5;
    --surface:    #ffffff;
    --bg:         #f8fafc;
    --border:     #e2e8f0;
    --text:       #1e293b;
    --muted:      #64748b;
    --danger:     #ef4444;
    --success:    #10b981;
    --radius:     12px;
    --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --transition: .18s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ── Layout ── */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

/* ── Header ── */
.app-header {
    text-align: center;
    margin-bottom: 40px;
}
.header-logo {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    object-fit: contain;
}
.header-tagline {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
    letter-spacing: .01em;
}

/* ── Cards / Sections ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.section-icon { font-size: 1.2rem; }

/* ── Field Grid ── */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .field-grid { grid-template-columns: 1fr; }
}
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }

label {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
}
label small { font-weight: 400; color: var(--muted); }
.required { color: var(--danger); }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: 2px; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .93rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
    resize: vertical;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
input.invalid, textarea.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* ── Repeatable Rows ── */
.repeat-row {
    display: grid;
    gap: 10px;
    align-items: start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
}
.repeat-row--day {
    grid-template-columns: 60px 1fr;
}
.repeat-row--hotel {
    grid-template-columns: 1fr 1fr;
}
.repeat-row--flight {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
    .repeat-row--hotel,
    .repeat-row--flight { grid-template-columns: 1fr; }
}
.repeat-row .row-full { grid-column: 1 / -1; }

.day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    height: 38px;
    margin-top: 22px; /* align with input */
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}
.btn-remove:hover { color: var(--danger); background: #fef2f2; }

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px dashed var(--brand);
    color: var(--brand);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 4px;
}
.btn-add:hover { background: var(--brand-light); }

/* ── Submit ── */
.submit-row { text-align: center; margin-top: 8px; }

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(79,70,229,.3);
}
.btn-submit:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,.35);
}
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Progress Panel ── */
.progress-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    margin-top: 24px;
    box-shadow: var(--shadow);
}
.progress-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.progress-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

#progress-message { color: var(--muted); font-size: .95rem; }

.progress-bar-track {
    width: 100%;
    max-width: 360px;
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--brand);
    border-radius: 999px;
    transition: width .4s ease;
}

/* ── Result / Preview Panel ── */
.result-panel {
    background: var(--surface);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius);
    margin-top: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.preview-title { display: flex; align-items: center; gap: 14px; }
.preview-icon  { font-size: 1.8rem; line-height: 1; }
.preview-title h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 2px; }
.preview-title p  { color: var(--muted); font-size: .85rem; margin: 0; }

.preview-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.preview-embed-wrap { width: 100%; background: #111827; }
#gamma-iframe { display: block; width: 100%; height: 560px; border: none; }

.revision-section { padding: 20px 24px 24px; border-top: 1px solid var(--border); }
.revision-section label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.revision-section textarea { width: 100%; resize: vertical; }
.revision-actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; align-items: center; }

/* Error panel actions */
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }

/* Tone preview sentence */
.tone-preview-text {
    font-style: italic;
    color: var(--muted);
    font-size: .8rem;
    margin: 6px 0 0;
    min-height: 1.2em;
    line-height: 1.4;
}

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-download, .btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .93rem;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-download {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16,185,129,.25);
}
.btn-download:hover { background: #059669; text-decoration: none; }
.btn-view {
    background: var(--brand-light);
    color: var(--brand-dark);
    border: 1px solid var(--brand);
}
.btn-view:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ── Error Panel ── */
.error-panel {
    background: var(--surface);
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    margin-top: 24px;
}
.error-icon { font-size: 3rem; margin-bottom: 8px; }
.error-panel h2 { font-size: 1.4rem; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.error-panel p { color: var(--muted); margin-bottom: 24px; }

.btn-retry {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.btn-retry:hover { background: #dc2626; }

/* ── Themes Panel ── */
.themes-panel {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.themes-panel.hidden { display: none; }

.theme-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border);
}
.theme-item:last-child { border-bottom: none; }
.theme-item:hover { background: var(--brand-light); }
.theme-item .theme-name { font-weight: 500; font-size: .9rem; }
.theme-item .theme-tags {
    font-size: .78rem;
    color: var(--muted);
}
.theme-item .theme-id {
    font-size: .75rem;
    color: var(--muted);
    font-family: monospace;
    margin-left: auto;
}

/* ── Preset selector (index.php) ── */
.preset-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.preset-card {
    flex: 1 1 160px;
    max-width: 260px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.preset-card:hover {
    border-color: var(--brand);
    background: var(--brand-light);
}
.preset-card--active {
    border-color: var(--brand);
    background: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.preset-card-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
}
.preset-card-meta {
    font-size: .78rem;
    color: var(--muted);
}
.preset-card--active .preset-card-name { color: var(--brand-dark); }

/* ── Preset rows (settings.php) ── */
.preset-row {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.preset-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.preset-row-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--brand);
    color: #fff;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.preset-name-input {
    flex: 1;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    background: var(--surface);
}
.preset-name-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(79,70,229,.15);
}
.preset-row-body { padding: 16px; }
.btn-remove-preset { margin-left: auto; }

/* ── Settings link in header ── */
.settings-link {
    display: inline-block;
    margin-top: 10px;
    font-size: .85rem;
    color: var(--brand);
    border: 1px solid var(--brand);
    padding: 4px 12px;
    border-radius: 20px;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.settings-link:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ── Settings page extras ── */
.section-desc {
    font-size: .875rem;
    color: var(--muted);
    margin-bottom: 16px;
    margin-top: -8px;
}

.input-with-action {
    display: flex;
    gap: 8px;
}
.input-with-action input { flex: 1; }

.btn-inline {
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    font-size: .85rem;
    cursor: pointer;
    color: var(--text);
    transition: background var(--transition);
    white-space: nowrap;
}
.btn-inline:hover { background: var(--border); }

.input-readonly {
    background: var(--bg);
    color: var(--muted);
    cursor: default;
}

.settings-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--brand);
    color: var(--brand);
    padding: 9px 20px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover:not(:disabled) { background: var(--brand-light); }
.btn-secondary:disabled { opacity: .6; cursor: not-allowed; }

.test-result { font-size: .875rem; }
.test-result--ok    { color: var(--success); }
.test-result--error { color: var(--danger); }
.test-result--warn  { color: #d97706; }

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 500;
}
.alert--success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Nav ── */
.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding: 6px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.nav-links { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav-link {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.nav-link:hover         { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.nav-link--active       { background: var(--brand-light); color: var(--brand-dark); }
.nav-user               { display: flex; align-items: center; gap: 10px; }
.nav-username           { font-size: .82rem; color: var(--muted); font-weight: 500; }
.nav-logout {
    font-size: .8rem;
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 3px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.nav-logout:hover { background: var(--danger); color: #fff; text-decoration: none; }

/* ── Login page ── */
.login-container { max-width: 420px; padding-top: 72px; }
.login-card      { padding: 32px; }

/* ── Info alert ── */
.alert--info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ── Prefill banner ── */
.prefill-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

/* ── History page ── */
.history-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    min-width: 600px;
}
.history-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.history-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.history-table tbody tr:last-child td { border-bottom: none; }
.history-table tbody tr:hover td      { background: var(--bg); }
.history-name   { font-weight: 600; max-width: 220px; }
.history-dest   { color: var(--muted); }
.history-dates  { color: var(--muted); white-space: nowrap; }
.history-created{ white-space: nowrap; font-size: .85rem; }
.history-by     { color: var(--muted); font-size: .78rem; }
.history-actions{ display: flex; gap: 8px; align-items: center; white-space: nowrap; }

.btn-history-download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--success);
    color: #fff;
    text-decoration: none;
    transition: background var(--transition);
    cursor: pointer;
    border: none;
}
.btn-history-download:hover              { background: #059669; text-decoration: none; }
.btn-history-download--disabled          { background: var(--border); color: var(--muted); cursor: default; }
.btn-history-download--disabled:hover    { background: var(--border); }

.btn-history-template {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--brand-light);
    color: var(--brand-dark);
    border: 1px solid var(--brand);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.btn-history-template:hover { background: var(--brand); color: #fff; text-decoration: none; }

.history-empty {
    padding: 40px;
    text-align: center;
    color: var(--muted);
}
.history-note {
    margin-top: 14px;
    font-size: .78rem;
    color: var(--muted);
}
.history-ref-note {
    font-size: .78rem;
    color: var(--muted);
    font-style: italic;
    cursor: help;
}
.history-note-edit-link {
    font-size: .72rem;
    color: var(--muted);
    opacity: .6;
}
.history-note-edit-link:hover { opacity: 1; }

/* ── Users page ── */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}
.user-form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.user-form-divider::before,
.user-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.user-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
}
.role-badge--admin { background: #ede9fe; color: #5b21b6; }
.role-badge--user  { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.badge-you {
    font-size: .7rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-light);
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
}
.user-row--self td { background: #fafbff; }

/* ── History: search ── */
.history-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.history-search-input {
    flex: 1;
    min-width: 180px;
    max-width: 340px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .9rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.history-search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.search-count {
    font-size: .82rem;
    color: var(--muted);
    white-space: nowrap;
}

/* ── History: pagination ── */
.pagination-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.pagination-btn {
    min-width: 34px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pagination-btn:hover:not(.pagination-btn--active) {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand-dark);
}
.pagination-btn--active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    cursor: default;
}

/* ── History: status select ── */
.status-select {
    padding: 4px 8px;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    padding-right: 22px;
    transition: opacity var(--transition);
}
.status-select--draft     { background-color: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.status-select--sent      { background-color: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.status-select--confirmed { background-color: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.status-select--cancelled { background-color: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* ── History: follow-up ── */
.followup-input {
    padding: 4px 8px;
    font-size: .78rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    width: 120px;
}
.followup-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    margin-top: 3px;
    white-space: nowrap;
}
.followup--overdue { color: var(--danger); }
.followup--soon    { color: #d97706; }

/* ── Share modal ── */
.share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}
.share-modal.hidden { display: none; }
.share-modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    padding: 28px 28px 24px;
    max-width: 480px;
    width: 100%;
}
.share-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.share-modal-expiry {
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 16px;
}
.share-modal-url-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.share-modal-input {
    flex: 1;
    font-size: .82rem;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
}
.share-modal-close {
    margin-top: 16px;
    display: block;
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    padding: 4px;
}
.share-modal-close:hover { color: var(--text); }

/* ── Profile link in nav ── */
.nav-username--link {
    text-decoration: none;
    border-bottom: 1px dashed var(--muted);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.nav-username--link:hover {
    color: var(--brand);
    border-color: var(--brand);
    text-decoration: none;
}
