/* පසල් වෙබ් අඩවියේ past papers page css */
/* Glassmorphism Cards (Light Theme) */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    margin-bottom: 28px;
}

/* Grade Selection Navigation Grid */
.grade-select-heading {
    color: #b91c1c;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.grade-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
    padding: 14px 10px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    user-select: none;
}

.grade-btn:hover {
    border-color: rgba(185, 28, 28, 0.5);
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
}

.grade-btn.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border-color: #b91c1c;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.35);
}

/* Subject Buttons Grid */
.subject-title {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.sub-btn {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #52525b;
    padding: 12px 10px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.3);
}

/* Floating Back To Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 99;
    border: none;
    outline: none;
    background: #b91c1c;
    color: #ffffff;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(185, 28, 28, 0.35);
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    background: #0f172a;
    color: #ffffff;
    transform: scale(1.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   Application Buttons Grid (Red & Gold Theme)
   ========================================================== */
:root {
    --card: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.1);
    --accent-a: #dc2626;
    --accent-b: #b91c1c;
    --text: #0f172a;
}

* { box-sizing: border-box; }

/* === The grid you asked about === */
.app-btn-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* 2 per row on mobile */
    gap: 14px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 30px;
    padding: 0 10px;
}

/* On tablets/desktops, let it breathe into a single row of 4 */
@media (min-width: 720px) {
    .app-btn-container {
        grid-template-columns: repeat(4, 1fr);
        max-width: 980px;
        gap: 18px;
    }
}

.application-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 72px;
    padding: 14px 10px;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: var(--text) !important;
    font-size: clamp(0.78rem, 2.4vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    line-height: 1.25;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.25s ease, box-shadow 0.3s ease,
                background 0.3s ease, border-color 0.25s ease;
    cursor: pointer;
}

/* subtle top sheen, like glass */
.application-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 55%);
    pointer-events: none;
}

.application-btn:hover,
.application-btn:focus-visible {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow:
        0 12px 26px rgba(185, 28, 28, 0.35),
        0 6px 14px rgba(217, 119, 6, 0.25);
    outline: none;
}

.application-btn:active {
    transform: translateY(-1px) scale(0.97);
}

.note {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 10px;
    color: #71717a;
    font-size: 0.8rem;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================================
   Fullscreen Paper Modal Overlay Styles (Light Theme)
   ========================================================== */
.paper-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.paper-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.paper-modal-content {
    width: 92%;
    max-width: 900px;
    height: 85vh;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.paper-modal-header {
    padding: 18px 24px;
    background: rgba(254, 252, 232, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paper-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paper-modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #52525b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.paper-modal-close:hover {
    background: #dc2626;
    color: #ffffff;
}

.paper-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Term Accordion / Dropdown Styles */
.term-accordion {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: rgba(254, 252, 232, 0.4);
    overflow: hidden;
}

.term-header {
    width: 100%;
    padding: 16px 20px;
    background: rgba(254, 252, 232, 0.8);
    border: none;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.term-header:hover {
    background: rgba(234, 179, 8, 0.15);
}

.term-header .arrow-icon {
    transition: transform 0.3s ease;
    stroke: #71717a;
}

.term-accordion.active .term-header .arrow-icon {
    transform: rotate(180deg);
    stroke: #b91c1c;
}

.term-content {
    display: none;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-direction: column;
    gap: 12px;
}

.term-accordion.active .term-content {
    display: flex;
    max-height: 310px; /* Paper cards 2කට වඩා වැඩි වුවහොත් උස සීමා කිරීම */
    overflow-y: auto;  /* Dropdown එක ඇතුළෙන්ම පමණක් Scroll වීම */
    -webkit-overflow-scrolling: touch;
}

/* Inner Scrollbar Design */
.term-content::-webkit-scrollbar {
    width: 5px;
}

.term-content::-webkit-scrollbar-track {
    background: transparent;
}

.term-content::-webkit-scrollbar-thumb {
    background: rgba(185, 28, 28, 0.5);
    border-radius: 4px;
}

.empty-term-msg {
    color: #71717a;
    font-size: 0.9rem;
    padding: 12px;
    text-align: center;
    font-style: italic;
}

.pdf-preview-overlay,
.preview-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.85);
    z-index: 999999 !important; /* වෙනත් ඕනෑම Navigation / Tab එකකට වඩා උඩින් පෙන්වීමට */
    display: none;
    align-items: center;
    justify-content: center;
}

.pdf-preview-overlay.active,
.preview-overlay.active {
    display: flex !important;
}

/* Header එකට යටින් Section එක වැහීම වැළැක්වීමට */
#medium-selection-point,
#grade-selection-point,
.tab-content {
    scroll-margin-top: 90px; /* Header එකේ Height එක අනුව මේ pixel ගණන (80px - 100px) වෙනස් කරගන්න */
}
/* පසල් වෙබ් අඩවියේ past papers page css */
/* Glassmorphism Cards (Light Theme) */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    margin-bottom: 28px;
}

/* Grade Selection Navigation Grid */
.grade-select-heading {
    color: #b91c1c;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.grade-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
    padding: 14px 10px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    user-select: none;
}

.grade-btn:hover {
    border-color: rgba(185, 28, 28, 0.5);
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
}

.grade-btn.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border-color: #b91c1c;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.35);
}

/* Subject Buttons Grid */
.subject-title {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.sub-btn {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #52525b;
    padding: 12px 10px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.3);
}

/* Floating Back To Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 99;
    border: none;
    outline: none;
    background: #b91c1c;
    color: #ffffff;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(185, 28, 28, 0.35);
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    background: #0f172a;
    color: #ffffff;
    transform: scale(1.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   Application Buttons Grid (Red & Gold Theme)
   ========================================================== */
:root {
    --card: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.1);
    --accent-a: #dc2626;
    --accent-b: #b91c1c;
    --text: #0f172a;
}

* { box-sizing: border-box; }

/* === The grid you asked about === */
.app-btn-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* 2 per row on mobile */
    gap: 14px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 30px;
    padding: 0 10px;
}

/* On tablets/desktops, let it breathe into a single row of 4 */
@media (min-width: 720px) {
    .app-btn-container {
        grid-template-columns: repeat(4, 1fr);
        max-width: 980px;
        gap: 18px;
    }
}

.application-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 72px;
    padding: 14px 10px;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: var(--text) !important;
    font-size: clamp(0.78rem, 2.4vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    line-height: 1.25;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.25s ease, box-shadow 0.3s ease,
                background 0.3s ease, border-color 0.25s ease;
    cursor: pointer;
}

/* subtle top sheen, like glass */
.application-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 55%);
    pointer-events: none;
}

.application-btn:hover,
.application-btn:focus-visible {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow:
        0 12px 26px rgba(185, 28, 28, 0.35),
        0 6px 14px rgba(217, 119, 6, 0.25);
    outline: none;
}

.application-btn:active {
    transform: translateY(-1px) scale(0.97);
}

.note {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 10px;
    color: #71717a;
    font-size: 0.8rem;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================================
   Fullscreen Paper Modal Overlay Styles (Light Theme)
   ========================================================== */
.paper-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.paper-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.paper-modal-content {
    width: 92%;
    max-width: 900px;
    height: 85vh;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.paper-modal-header {
    padding: 18px 24px;
    background: rgba(254, 252, 232, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paper-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paper-modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #52525b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.paper-modal-close:hover {
    background: #dc2626;
    color: #ffffff;
}

.paper-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Term Accordion / Dropdown Styles */
.term-accordion {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: rgba(254, 252, 232, 0.4);
    overflow: hidden;
}

.term-header {
    width: 100%;
    padding: 16px 20px;
    background: rgba(254, 252, 232, 0.8);
    border: none;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.term-header:hover {
    background: rgba(234, 179, 8, 0.15);
}

.term-header .arrow-icon {
    transition: transform 0.3s ease;
    stroke: #71717a;
}

.term-accordion.active .term-header .arrow-icon {
    transform: rotate(180deg);
    stroke: #b91c1c;
}

.term-content {
    display: none;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-direction: column;
    gap: 12px;
}

.term-accordion.active .term-content {
    display: flex;
    max-height: 310px; /* Paper cards 2කට වඩා වැඩි වුවහොත් උස සීමා කිරීම */
    overflow-y: auto;  /* Dropdown එක ඇතුළෙන්ම පමණක් Scroll වීම */
    -webkit-overflow-scrolling: touch;
}

/* Inner Scrollbar Design */
.term-content::-webkit-scrollbar {
    width: 5px;
}

.term-content::-webkit-scrollbar-track {
    background: transparent;
}

.term-content::-webkit-scrollbar-thumb {
    background: rgba(185, 28, 28, 0.5);
    border-radius: 4px;
}

.empty-term-msg {
    color: #71717a;
    font-size: 0.9rem;
    padding: 12px;
    text-align: center;
    font-style: italic;
}

.pdf-preview-overlay,
.preview-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.85);
    z-index: 999999 !important; /* වෙනත් ඕනෑම Navigation / Tab එකකට වඩා උඩින් පෙන්වීමට */
    display: none;
    align-items: center;
    justify-content: center;
}

.pdf-preview-overlay.active,
.preview-overlay.active {
    display: flex !important;
}

/* Header එකට යටින් Section එක වැහීම වැළැක්වීමට */
#medium-selection-point,
#grade-selection-point,
.tab-content {
    scroll-margin-top: 90px; /* Header එකේ Height එක අනුව මේ pixel ගණන (80px - 100px) වෙනස් කරගන්න */
}

/* ==========================================================
   NEW ADDITIONS FOR TERM TEST PAGE (අලුතෙන් එකතු කල කොටස)
   ========================================================== */

/* Filter Section (Year & Term) */
.filter-section {
    padding: 24px;
    margin-bottom: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.custom-select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* ZIP Download Button Container */
.zip-download-container {
    text-align: center;
    margin-bottom: 30px;
}

/* Utility classes for spacing and alignment */
.text-center { text-align: center; }
.mt-2 { margin-top: 10px; }
.mb-2 { margin-bottom: 10px; }
.mt-4 { margin-top: 20px; }
/* ==========================================================
   Disclaimer Modal CSS
   ========================================================== */
.disclaimer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.disclaimer-overlay.active {
    opacity: 1;
}

.disclaimer-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.disclaimer-overlay.active .disclaimer-card {
    transform: translateY(0);
}

.disclaimer-icon { font-size: 45px; margin-bottom: 15px; }
.disclaimer-card h3 { color: #b91c1c; font-weight: 800; margin-bottom: 15px; font-size: 1.3rem; }
.disclaimer-card p { color: #52525b; font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }
.disclaimer-actions { display: flex; gap: 12px; margin-top: 25px; }

.btn-agree, .btn-disagree {
    flex: 1; padding: 14px; border-radius: 12px; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s; font-size: 1rem;
}

.btn-agree { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; }
.btn-agree:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(185, 28, 28, 0.35); }
.btn-disagree { background: #e4e4e7; color: #0f172a; }
.btn-disagree:hover { background: #d4d4d8; transform: translateY(-2px); }
