/*
 * Bank Statement Processor Styles
 * Color theme from PnPWebsite2.0:
 * - Primary: Navy Blue rgb(13, 40, 73) / #0D2849
 * - Accent: Gold rgb(206, 186, 76) / #CEBA4C
 * - Text: White/Off-white #f2f2f2
 * - Secondary: Dark gray #333
 */

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

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: rgb(13, 40, 73);
    color: #f2f2f2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: rgba(13, 40, 73, 0.95);
    padding: 0.6rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(206, 186, 76, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 1;
    min-width: 0;
}

.logo-pnp {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f2f2f2;
}

.logo-ea {
    height: 50px;
    width: auto;
}

/* (runs-counter-wrapper removed — now inside .header-status) */

/* Runs Counter */
.runs-counter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem 0.4rem 0.65rem;
    background: linear-gradient(135deg, rgba(206, 186, 76, 0.08), rgba(206, 186, 76, 0.03));
    border: 1px solid rgba(206, 186, 76, 0.25);
    border-radius: 8px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.runs-counter:hover {
    border-color: rgba(206, 186, 76, 0.45);
    box-shadow: 0 0 12px rgba(206, 186, 76, 0.08);
}

/* Tooltip */
.runs-counter {
    position: relative;
    cursor: default;
}

.runs-counter::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    padding: 0.55rem 0.75rem;
    background: rgba(13, 40, 73, 0.95);
    border: 1px solid rgba(206, 186, 76, 0.3);
    border-radius: 6px;
    color: rgba(242, 242, 242, 0.8);
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    white-space: pre-line;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.runs-counter:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.runs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.3rem;
    background: linear-gradient(135deg, rgba(206, 186, 76, 0.2), rgba(206, 186, 76, 0.08));
    border-radius: 6px;
    color: rgb(206, 186, 76);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.runs-label {
    color: rgba(242, 242, 242, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.runs-tier {
    margin-left: 0.15rem;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(153, 69, 255, 0.08));
    color: #c9a0ff;
    border: 1px solid rgba(153, 69, 255, 0.25);
}

/* Depleted state */
.runs-counter-depleted {
    border-color: rgba(231, 76, 60, 0.35);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(231, 76, 60, 0.02));
}

.runs-counter-depleted .runs-count {
    color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.08));
}

.runs-counter-depleted .runs-label {
    color: rgba(231, 76, 60, 0.5);
}

/* Unlimited state */
.runs-counter-unlimited {
    border-color: rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.02));
}

.runs-counter-unlimited .runs-count {
    color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.08));
    font-size: 1rem;
}

.runs-counter-unlimited .runs-label {
    color: rgba(76, 175, 80, 0.5);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: rgb(206, 186, 76);
    opacity: 0.5;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.theme-toggle-btn:hover {
    opacity: 1;
}
.theme-toggle-btn.active {
    color: #CEBA4C;
}

/* ===== Header Status (CA + Runs) ===== */
.header-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
}

/* ===== Header Actions (Connect + Theme + Socials) ===== */
.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* ===== Header Social Link ===== */
.header-social {
    display: flex;
    align-items: center;
    color: rgba(206, 186, 76, 0.5);
    transition: color 0.2s;
    flex-shrink: 0;
    margin-left: -0.25rem;
}
.header-social:hover {
    color: #CEBA4C;
}
body.theme-gold .header-social {
    color: rgba(13, 40, 73, 0.4);
}
body.theme-gold .header-social:hover {
    color: #0D2849;
}
.header-social-x {
    opacity: 0.5;
    transition: opacity 0.2s;
}
.header-social:hover .header-social-x {
    opacity: 1;
}
body.theme-gold .header-social-x {
    filter: invert(1);
}
.header-social-img {
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.header-social:hover .header-social-img {
    opacity: 1;
}

/* ===== Wallet Button ===== */
.wallet-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(206, 186, 76, 0.5);
    border-radius: 4px;
    color: rgb(206, 186, 76);
    font-family: inherit;
    font-size: 0.82rem;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.wallet-btn:hover {
    background-color: rgba(206, 186, 76, 0.1);
    border-color: rgb(206, 186, 76);
}
.wallet-btn.connected {
    border-color: rgba(40, 199, 111, 0.5);
    color: #28c76f;
}
.wallet-btn.connected:hover {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}
.wallet-icon {
    flex-shrink: 0;
}

/* ===== Gold Theme ===== */
@keyframes goldShimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

body.theme-gold {
    background: linear-gradient(
        135deg,
        #b8960c 0%,
        #d4af37 10%,
        #f5e17d 20%,
        #d4af37 30%,
        #c9a227 40%,
        #f0d560 50%,
        #d4af37 60%,
        #e8c84a 70%,
        #f5e17d 80%,
        #d4af37 90%,
        #b8960c 100%
    );
    background-size: 300% 300%;
    animation: goldShimmer 8s ease-in-out infinite alternate;
    color: #0D2849;
}
body.theme-gold .header {
    background: rgba(212, 175, 55, 0.95);
    border-bottom: 1px solid rgba(13, 40, 73, 0.2);
    box-shadow: 0 2px 12px rgba(184, 150, 12, 0.4);
}
body.theme-gold .nav-link {
    color: #0D2849;
    border-color: rgba(13, 40, 73, 0.3);
    background: transparent;
}
body.theme-gold .nav-link:hover {
    background: rgba(13, 40, 73, 0.08);
    border-color: #0D2849;
}
body.theme-gold .nav-link.active {
    background: transparent;
    border-color: #0D2849;
}
body.theme-gold .page-title {
    color: #0D2849;
}
body.theme-gold .page-subtitle {
    color: rgba(13, 40, 73, 0.7);
}
body.theme-gold .config-section {
    background: rgba(206, 186, 76, 0.12);
    border-color: rgba(206, 186, 76, 0.35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
body.theme-gold .config-section h3 {
    color: rgb(206, 186, 76);
}
body.theme-gold .config-section label {
    color: rgb(206, 186, 76);
}
body.theme-gold .config-section select,
body.theme-gold .config-section input[type="text"],
body.theme-gold .config-section input[type="number"],
body.theme-gold .config-section input[type="date"] {
    background: rgba(206, 186, 76, 0.15);
    border-color: rgba(206, 186, 76, 0.4);
    color: #e8e8e8;
}
body.theme-gold .config-section input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
body.theme-gold .config-section select option {
    color: #0D2849;
}
body.theme-gold .section-header h2 {
    color: rgb(206, 186, 76);
}
body.theme-gold .section-description {
    color: rgba(206, 186, 76, 0.8);
}
body.theme-gold .upload-box {
    background: rgba(206, 186, 76, 0.08);
    border-color: rgba(206, 186, 76, 0.5);
    color: #e8e8e8;
    box-shadow: none;
}
body.theme-gold .upload-box:hover {
    border-color: rgb(206, 186, 76);
    background: rgba(206, 186, 76, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 248, 200, 0.35), 0 2px 8px rgba(184, 150, 12, 0.15);
}
body.theme-gold .upload-icon {
    color: rgba(13, 40, 73, 0.5);
}
body.theme-gold .submit-btn,
body.theme-gold .submit-btn-smart {
    background: linear-gradient(135deg, #0D2849, #1a3d6e, #0D2849);
    color: #f5e17d;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 2px 8px rgba(13, 40, 73, 0.3), inset 0 1px 0 rgba(245, 225, 125, 0.1);
    text-shadow: 0 0 8px rgba(245, 225, 125, 0.3);
}
body.theme-gold .submit-btn:hover:not(:disabled),
body.theme-gold .submit-btn-smart:hover:not(:disabled) {
    background: linear-gradient(135deg, #1a3d6e, #264f82, #1a3d6e);
    box-shadow: 0 4px 16px rgba(13, 40, 73, 0.4), inset 0 1px 0 rgba(245, 225, 125, 0.2);
    text-shadow: 0 0 12px rgba(245, 225, 125, 0.5);
}
body.theme-gold .info-section {
    background: rgba(13, 40, 73, 0.06);
    border-color: rgba(13, 40, 73, 0.2);
}
body.theme-gold .ca-display {
    display: none;
}
body.theme-gold .runs-counter {
    border-color: rgba(13, 40, 73, 0.3);
    background: rgba(13, 40, 73, 0.08);
}
body.theme-gold .runs-label {
    color: #0D2849;
}
body.theme-gold .runs-count {
    background: rgba(13, 40, 73, 0.15);
    color: #0D2849;
}
body.theme-gold .theme-toggle-btn {
    color: #0D2849;
}
body.theme-gold .theme-toggle-btn.active {
    color: #0D2849;
}
body.theme-gold .wallet-btn {
    background: transparent;
    border-color: rgba(13, 40, 73, 0.3);
    color: #0D2849;
}
body.theme-gold .wallet-btn:hover {
    background: rgba(13, 40, 73, 0.08);
    border-color: #0D2849;
}
body.theme-gold .wallet-btn.connected {
    border-color: rgba(13, 40, 73, 0.5);
    color: #0D2849;
}
body.theme-gold .wallet-btn.connected:hover {
    background: rgba(13, 40, 73, 0.08);
    border-color: #0D2849;
    color: #0D2849;
}
body.theme-gold .loading-overlay {
    background: rgba(212, 175, 55, 0.97);
    color: #0D2849;
}
body.theme-gold .ea-section img {
    filter: none;
}
body.theme-gold .payment-locked {
    opacity: 0.45;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 0.35rem;
    margin-left: 0.75rem;
    flex-shrink: 2;
    min-width: 0;
}

.nav-link {
    color: rgb(206, 186, 76);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(206, 186, 76, 0.5);
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: rgba(206, 186, 76, 0.1);
    border-color: rgb(206, 186, 76);
}

.nav-link.active {
    background-color: rgba(206, 186, 76, 0.2);
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Upload Section */
.upload-section {
    position: relative;
    background-color: rgba(51, 51, 51, 0.8);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    width: 100%;
    box-shadow: 0 8px 32px rgba(6, 10, 59, 0.5);
    border: 1px solid rgba(206, 186, 76, 0.2);
}

.upload-section h1 {
    color: rgb(206, 186, 76);
    margin-bottom: 0.25rem;
    font-size: 1.8rem;
}

.subtitle {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Form Styles */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #f2f2f2;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(206, 186, 76, 0.5);
    border-radius: 6px;
    background-color: rgba(13, 40, 73, 0.8);
    color: #f2f2f2;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: rgb(206, 186, 76);
    box-shadow: 0 0 0 2px rgba(206, 186, 76, 0.2);
}

.form-group input::placeholder {
    color: #888;
}

/* Tax Period Toggle */
.tax-period-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(206, 186, 76, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}
.tax-period-toggle:hover {
    background: rgba(206, 186, 76, 0.08);
    border-color: rgba(206, 186, 76, 0.4);
}
.tax-period-toggle.active {
    background: rgba(206, 186, 76, 0.1);
    border-color: rgba(206, 186, 76, 0.5);
}
.tax-period-toggle-text {
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 500;
}
.tax-period-toggle.active .tax-period-toggle-text {
    color: rgb(206, 186, 76);
}
.tax-period-toggle-hint {
    color: #777;
    font-size: 0.75rem;
}
.tax-period-fields {
    padding-left: 0.5rem;
}

/* Tax Period Row */
.tax-period-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.form-group-half {
    flex: 1;
    min-width: 140px;
}
.form-group-half input[type="date"] {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(206, 186, 76, 0.5);
    border-radius: 6px;
    background-color: rgba(13, 40, 73, 0.8);
    color: #f2f2f2;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}
.form-group-half input[type="date"]:focus {
    outline: none;
    border-color: rgb(206, 186, 76);
    box-shadow: 0 0 0 2px rgba(206, 186, 76, 0.2);
}
.form-hint {
    flex-basis: 100%;
    color: #999;
    font-size: 0.8rem;
    margin-top: -0.25rem;
}

/* Dropzone Section */
.dropzone-section {
    margin-bottom: 0.5rem;
}

.dropzone-label {
    display: block;
    color: rgb(206, 186, 76);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Dropzone */
.dropzone {
    border: 2px dashed rgba(206, 186, 76, 0.5);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(13, 40, 73, 0.5);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: rgb(206, 186, 76);
    background-color: rgba(206, 186, 76, 0.1);
}

.dropzone-content {
    pointer-events: none;
}

.upload-icon {
    width: 36px;
    height: 36px;
    color: rgb(206, 186, 76);
    margin-bottom: 0.5rem;
}

.dropzone p {
    color: #f2f2f2;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.dropzone-hint {
    color: #888 !important;
    font-size: 0.9rem !important;
}

.dropzone-formats {
    color: #666 !important;
    font-size: 0.8rem !important;
    margin-top: 0.5rem !important;
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(13, 40, 73, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(206, 186, 76, 0.3);
}

.file-item .file-name {
    color: #f2f2f2;
    font-size: 0.9rem;
}

.file-item .file-size {
    color: #888;
    font-size: 0.8rem;
}

.file-item .remove-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

.file-item .remove-btn:hover {
    color: #ff4757;
}

.file-item .file-icon {
    background-color: rgba(206, 186, 76, 0.2);
    color: rgb(206, 186, 76);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* File list action buttons (Clear All, Undo) */
.file-list-clear-row {
    text-align: right;
    margin-bottom: 0.25rem;
}

.file-list-undo-row {
    text-align: center;
    margin-top: 0.25rem;
}

.file-list-action-btn {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
}

.duplicate-notice {
    color: #CEBA4C;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
}

/* File Type Selection */
.file-type-question {
    padding: 1.5rem;
    background-color: rgba(206, 186, 76, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(206, 186, 76, 0.2);
    margin-bottom: 0.5rem;
}

.file-type-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.file-type-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(13, 40, 73, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(206, 186, 76, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.file-type-option:hover {
    border-color: rgba(206, 186, 76, 0.5);
    background-color: rgba(13, 40, 73, 0.7);
}

.file-type-option input[type="radio"] {
    margin-top: 3px;
    accent-color: rgb(206, 186, 76);
}

.file-type-option input[type="radio"]:checked + .option-content {
    color: rgb(206, 186, 76);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-title {
    font-weight: bold;
    color: #f2f2f2;
}

.option-desc {
    font-size: 0.85rem;
    color: #aaa;
}

/* Cycle Selection */
.cycle-question {
    padding: 1.5rem;
    background-color: rgba(206, 186, 76, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(206, 186, 76, 0.3);
    margin-bottom: 0.5rem;
}

.cycle-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cycle-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(13, 40, 73, 0.5);
    border-radius: 6px;
    cursor: pointer;
    color: #f2f2f2;
}

.cycle-option:hover {
    background-color: rgba(13, 40, 73, 0.7);
}

.cycle-option input[type="radio"] {
    accent-color: rgb(206, 186, 76);
}

.cycle-day-input {
    width: 60px;
    padding: 0.4rem;
    margin-left: 0.5rem;
    background-color: rgba(13, 40, 73, 0.8);
    border: 1px solid rgba(206, 186, 76, 0.5);
    border-radius: 4px;
    color: #f2f2f2;
    font-family: inherit;
    font-size: 0.9rem;
    text-align: center;
}

.cycle-day-input:focus {
    outline: none;
    border-color: rgb(206, 186, 76);
}

/* CSV Question */
.csv-question {
    padding: 1.5rem;
    background-color: rgba(206, 186, 76, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(206, 186, 76, 0.3);
    text-align: center;
}

.question-label {
    display: block;
    color: #f2f2f2;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.question-hint {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.question-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.question-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgb(83, 78, 3), rgb(175, 164, 5));
    color: #f2f2f2;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-btn:hover {
    background: linear-gradient(135deg, rgb(175, 164, 5), rgb(206, 186, 76));
    transform: translateY(-2px);
}

.question-btn-secondary {
    background: rgba(13, 40, 73, 0.8);
    border: 1px solid rgba(206, 186, 76, 0.5);
}

.question-btn-secondary:hover {
    background: rgba(13, 40, 73, 1);
    border-color: rgb(206, 186, 76);
}

/* Split Option */
.split-option {
    padding: 1rem;
    background-color: rgba(206, 186, 76, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(206, 186, 76, 0.3);
}

.split-option p {
    margin-bottom: 0.75rem;
    color: rgb(206, 186, 76);
    font-weight: bold;
}

.split-option label {
    display: block;
    padding: 0.5rem 0;
    cursor: pointer;
    color: #f2f2f2;
}

.split-option input[type="radio"] {
    margin-right: 0.5rem;
}

/* Buttons */
.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgb(83, 78, 3), rgb(175, 164, 5));
    color: #f2f2f2;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(175, 164, 5), rgb(206, 186, 76));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(206, 186, 76, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Results Section */
.results-section {
    width: 100%;
    margin-top: 1.5rem;
}

.result-card {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.result-card.success {
    background-color: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.5);
}

.result-card.error {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.result-card h2 {
    margin-bottom: 0.5rem;
}

.result-card.success h2 {
    color: #27ae60;
}

.result-card.error h2 {
    color: #e74c3c;
}

.validation-warnings {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(241, 196, 15, 0.15);
    border: 1px solid rgba(241, 196, 15, 0.5);
    border-radius: 8px;
    text-align: left;
}

.validation-warnings h4 {
    color: #f5d742;
    margin-bottom: 0.5rem;
}

.validation-warnings ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.validation-warnings li {
    color: #f2f2f2;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.validation-warnings p {
    color: #d4d4d4;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.date-range-info {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.4);
    border-radius: 8px;
    text-align: center;
}

.date-range-info p {
    margin: 0;
    color: #27ae60;
}

.duplicate-warning {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.5);
    border-radius: 8px;
    text-align: left;
}

.duplicate-warning h4 {
    color: #f76c5e;
    margin-bottom: 0.5rem;
}

.duplicate-warning ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.duplicate-warning li {
    color: #f2f2f2;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.duplicate-warning p {
    color: #d4d4d4;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.download-btn,
.retry-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgb(8, 41, 81), rgb(13, 57, 116));
    color: #f2f2f2;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.download-btn:hover,
.retry-btn:hover {
    background: linear-gradient(135deg, rgb(13, 57, 116), rgb(38, 92, 199));
    transform: translateY(-2px);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.result-actions .download-btn {
    margin-top: 0;
}

.result-actions .question-btn-secondary {
    margin-top: 0;
}

.result-actions .labeler-link-btn {
    background: linear-gradient(135deg, rgb(206, 186, 76), rgb(175, 164, 5));
    color: #0D2849;
}

.result-actions .labeler-link-btn:hover {
    background: linear-gradient(135deg, rgb(220, 200, 90), rgb(206, 186, 76));
}

/* Footer */
.footer {
    background-color: #000;
    padding: 1.5rem 1rem 1rem;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

.footer .footer-secure {
    margin-bottom: 0.75rem;
}

.footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.footer .footer-links a {
    color: #CEBA4C;
    text-decoration: none;
    transition: color 0.2s;
}

.footer .footer-links a:hover {
    color: #e8d66a;
    text-decoration: underline;
}

.footer .footer-links .footer-sep {
    color: #555;
}

.footer .footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.footer .footer-socials a {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer .footer-socials a:hover {
    color: #CEBA4C;
}

.footer .footer-ca {
    font-size: 0.68rem;
    color: #666;
    margin-top: 0.5rem;
    font-family: monospace;
    letter-spacing: 0.3px;
}

.footer .footer-token-disclaimer {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 0.5rem;
    border-top: 1px solid #222;
    font-size: 0.7rem;
    color: #666;
    line-height: 1.4;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 40, 73, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(206, 186, 76, 0.3);
    border-top-color: rgb(206, 186, 76);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-content p {
    color: #f2f2f2;
    font-size: 1.1rem;
    max-width: 300px;
    line-height: 1.5;
}

/* Progress Details */
.progress-details {
    margin-top: 1.5rem;
    width: 300px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(206, 186, 76, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgb(206, 186, 76), rgb(175, 164, 5));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.stat-label {
    color: #888;
}

.stat-row span:last-child {
    color: #f2f2f2;
    font-family: 'Courier New', monospace;
}

.cancel-extraction-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: Georgia, 'Times New Roman', serif;
    transition: all 0.2s ease;
}

.cancel-extraction-btn:hover {
    background: #ff6b6b;
    color: #fff;
}

/* General Loading Info (non-SSE flows) */
.loading-info {
    margin-top: 1.5rem;
    width: 320px;
    text-align: center;
}

.loading-info-timer {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(206, 186, 76);
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.loading-info-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(206, 186, 76, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.loading-info-bar-indeterminate {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(206, 186, 76), transparent);
    border-radius: 2px;
    animation: indeterminate-slide 1.8s ease-in-out infinite;
}

@keyframes indeterminate-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.loading-info-steps {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.loading-info-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(242, 242, 242, 0.3);
    font-size: 0.85rem;
    transition: color 0.4s;
}

.loading-info-step.active {
    color: #f2f2f2;
}

.loading-info-step.done {
    color: rgba(76, 175, 80, 0.7);
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(242, 242, 242, 0.2);
    flex-shrink: 0;
    transition: background 0.4s, box-shadow 0.4s;
}

.loading-info-step.active .step-dot {
    background: rgb(206, 186, 76);
    box-shadow: 0 0 6px rgba(206, 186, 76, 0.5);
}

.loading-info-step.done .step-dot {
    background: #4CAF50;
}

.loading-info-hint {
    color: rgba(242, 242, 242, 0.3);
    font-size: 0.75rem;
}

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

/* Verification Section */
.verification-section {
    width: 100%;
    margin-top: 1.5rem;
}

.verification-card {
    background-color: rgba(51, 51, 51, 0.8);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(6, 10, 59, 0.5);
    border: 1px solid rgba(206, 186, 76, 0.2);
}

.verification-card h2 {
    color: rgb(206, 186, 76);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.verification-intro {
    color: #ccc;
    margin-bottom: 1rem;
}

.verification-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.warning-icon {
    width: 24px;
    height: 24px;
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 2px;
}

.verification-warning span {
    color: #f2f2f2;
    font-size: 0.9rem;
    line-height: 1.4;
}

.verification-warnings {
    padding: 1rem;
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.verification-warnings p {
    color: #e74c3c;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.verification-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.summary-item {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    background-color: rgba(13, 40, 73, 0.6);
    border-radius: 8px;
    text-align: center;
}

.summary-item.deposits {
    border: 1px solid rgba(39, 174, 96, 0.5);
}

.summary-item.withdrawals {
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.summary-label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.summary-value {
    display: block;
    color: #f2f2f2;
    font-size: 1.3rem;
    font-weight: bold;
}

.summary-item.deposits .summary-value {
    color: #27ae60;
}

.summary-item.withdrawals .summary-value {
    color: #e74c3c;
}

/* Transaction Table */
.transaction-table-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 1px solid rgba(206, 186, 76, 0.3);
    border-radius: 8px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.transaction-table thead {
    position: sticky;
    top: 0;
    background-color: rgba(13, 40, 73, 0.95);
    z-index: 1;
}

.transaction-table th {
    padding: 0.75rem;
    text-align: left;
    color: rgb(206, 186, 76);
    font-weight: bold;
    border-bottom: 2px solid rgba(206, 186, 76, 0.3);
}

.transaction-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f2f2f2;
}

.transaction-table tbody tr:hover {
    background-color: rgba(206, 186, 76, 0.1);
}

.transaction-table .date-col {
    white-space: nowrap;
    width: 100px;
}

.transaction-table .desc-col {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-table .amount-col {
    text-align: right;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
}

.transaction-table .amount-deposit {
    color: #27ae60;
}

.transaction-table .amount-withdrawal {
    color: #e74c3c;
}

/* Category Select */
.category-select {
    padding: 0.4rem 0.5rem;
    background-color: rgba(13, 40, 73, 0.8);
    border: 1px solid rgba(206, 186, 76, 0.5);
    border-radius: 4px;
    color: #f2f2f2;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.category-select:focus {
    outline: none;
    border-color: rgb(206, 186, 76);
}

/* Delete Button */
.delete-txn-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s;
}

.delete-txn-btn:hover {
    color: #e74c3c;
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background-color: rgba(13, 40, 73, 0.8);
    border: 1px solid rgba(206, 186, 76, 0.5);
    border-radius: 6px;
    color: #f2f2f2;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background-color: rgba(206, 186, 76, 0.2);
    border-color: rgb(206, 186, 76);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #aaa;
    font-size: 0.9rem;
}

/* Verification Actions */
.verification-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.verification-actions .submit-btn {
    flex: 1;
    max-width: 300px;
}

.verification-actions .question-btn-secondary {
    flex: 0;
    min-width: 120px;
}

/* Statement Type Selector (Bank vs Credit Card) */
.statement-type-selector {
    padding: 1.5rem;
    background-color: rgba(206, 186, 76, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(206, 186, 76, 0.2);
    margin-bottom: 0.5rem;
}

.statement-type-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.statement-type-option {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(13, 40, 73, 0.5);
    border-radius: 6px;
    border: 2px solid rgba(206, 186, 76, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.statement-type-option:hover {
    border-color: rgba(206, 186, 76, 0.5);
    background-color: rgba(13, 40, 73, 0.7);
}

.statement-type-option:has(input:checked) {
    border-color: rgb(206, 186, 76);
    background-color: rgba(206, 186, 76, 0.15);
}

.statement-type-option input[type="radio"] {
    margin-top: 3px;
    accent-color: rgb(206, 186, 76);
}

.statement-type-option .option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.statement-type-option .option-title {
    font-weight: bold;
    color: #f2f2f2;
}

.statement-type-option .option-desc {
    font-size: 0.85rem;
    color: #aaa;
}

.statement-type-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.statement-type-actions .confirm-type-btn {
    flex: 1;
    margin-top: 0;
}

.statement-type-actions .question-btn-secondary {
    flex: 0 0 auto;
    padding: 0.75rem 1.5rem;
}

/* ==========================================================================
   CA Display (moved from inline styles)
   ========================================================================== */
.ca-display {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 40, 73, 0.9);
    border: 2px solid #CEBA4C;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #CEBA4C;
    max-width: 320px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(206, 186, 76, 0.3);
    transition: all 0.2s;
    flex-shrink: 1;
    min-width: 0;
}
.ca-display .ca-label {
    font-weight: bold;
    white-space: nowrap;
}
.ca-display .ca-address {
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-weight: bold;
}

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */
.hamburger {
    display: none !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: 1px solid rgba(206, 186, 76, 0.4);
    border-radius: 6px;
    background: transparent;
    margin-left: 0.5rem;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #CEBA4C;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==========================================================================
   Responsive — Tablet (900px) — hamburger kicks in
   ========================================================================== */
@media (max-width: 1200px) {
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .hamburger {
        display: flex !important;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 10;
        margin-left: 0;
        margin-top: 0;
        gap: 0;
        background: rgba(13, 40, 73, 0.98);
        border-top: 1px solid rgba(206, 186, 76, 0.2);
        border-bottom: 1px solid rgba(206, 186, 76, 0.2);
        padding: 0.5rem 0;
    }
    .nav-links.open {
        display: flex;
        animation: slideDown 0.2s ease-out;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-links .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(206, 186, 76, 0.08);
        font-size: 0.95rem;
    }
    .nav-links .nav-link:last-child {
        border-bottom: none;
    }
    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: rgba(206, 186, 76, 0.1);
    }
    .header-status {
        order: 2;
    }
    .header-actions {
        order: 3;
    }
    .logo-section {
        width: auto;
        flex-shrink: 0;
    }
    .logo-pnp {
        height: 32px;
    }
}

/* ==========================================================================
   Gold Theme — Mobile Overrides (must come AFTER default responsive)
   ========================================================================== */
@media (max-width: 1200px) {
    body.theme-gold .hamburger {
        border: 2px solid #0D2849 !important;
        background: transparent !important;
    }
    body.theme-gold .hamburger span {
        background: #0D2849 !important;
        height: 3px !important;
        width: 24px !important;
    }
    body.theme-gold .nav-links {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.98), rgba(232, 200, 74, 0.98)) !important;
        border-top-color: rgba(13, 40, 73, 0.3) !important;
        border-bottom-color: rgba(13, 40, 73, 0.3) !important;
    }
    body.theme-gold .nav-links .nav-link {
        color: #0D2849 !important;
        background: transparent !important;
        border-bottom-color: rgba(13, 40, 73, 0.15) !important;
    }
    body.theme-gold .nav-links .nav-link:hover,
    body.theme-gold .nav-links .nav-link.active {
        background: rgba(13, 40, 73, 0.08) !important;
    }
}

/* ==========================================================================
   Responsive — Mobile (600px)
   ========================================================================== */
@media (max-width: 600px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .ca-display {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .upload-section {
        padding: 1.5rem;
        width: 95%;
    }

    .upload-section h1 {
        font-size: 1.4rem;
    }

    .dropzone {
        padding: 2rem 1rem;
    }

    .form-group-half {
        min-width: 100%;
    }

    .tax-period-row {
        flex-direction: column;
    }

    .verification-card {
        padding: 1.5rem;
    }

    .verification-summary {
        flex-direction: column;
    }

    .transaction-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .transaction-table {
        font-size: 0.8rem;
        min-width: 450px;
    }

    .transaction-table th,
    .transaction-table td {
        padding: 0.5rem;
    }

    .transaction-table .date-col {
        width: 80px;
    }

    .transaction-table .desc-col {
        max-width: 150px;
    }

    .verification-actions {
        flex-direction: column;
    }

    .verification-actions .submit-btn,
    .verification-actions .question-btn-secondary {
        max-width: none;
        width: 100%;
    }

    .statement-type-options {
        flex-direction: column;
    }

    .footer .footer-links {
        flex-wrap: wrap;
        font-size: 0.75rem;
    }

    .footer .footer-socials {
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 40, 73, 0.97);
    border-top: 1px solid rgba(206, 186, 76, 0.4);
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#cookie-consent-banner.cookie-consent-hide {
    opacity: 0;
    transform: translateY(100%);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent-inner p {
    margin: 0;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

#cookie-consent-accept {
    flex-shrink: 0;
    background: #CEBA4C;
    color: #0D2849;
    border: none;
    padding: 0.45rem 1.4rem;
    border-radius: 4px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#cookie-consent-accept:hover {
    background: #d9ca6a;
}

#cookie-consent-decline {
    flex-shrink: 0;
    background: transparent;
    color: #ccc;
    border: 1px solid rgba(206, 186, 76, 0.5);
    padding: 0.45rem 1.4rem;
    border-radius: 4px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

#cookie-consent-decline:hover {
    border-color: #CEBA4C;
    color: #fff;
}

@media (max-width: 600px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .cookie-consent-buttons {
        justify-content: center;
    }
}
