/**
 * ExcelDepo - Premium File Detail Design
 * Modern, large typography, static layout!
 */

/* ===== Layout Structure ===== */





.hidden-schema {
    display: none !important;
}

.divider {
    height: 1px;
    background: var(--color-border);
    margin: 2rem 0;
}

.divider.tight {
    margin: 0.5rem 0 2rem;
}

.divider.wide {
    margin: 2.5rem 0;
}

/* Main Header styles moved to global.css (.main-header) */

.file-main-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    /* Cream color */
}

.meta-item i {
    color: rgb(223, 240, 216) !important;
    --fa-primary-color: #DFF0D8 !important;
    --fa-secondary-color: rgba(255, 255, 255, 0.4) !important;
    font-size: 1.25rem;
}

.header-divider {
    margin-top: 2rem;
}

/* Stats Row in Main Content (Optional if present) */
.file-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--color-border);
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-v {
    font-weight: 900;
    color: var(--color-text);
    font-size: 1.1rem;
}

.stat-l {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.badge-free {
    color: #10b981;
}

html.dark .badge-free {
    color: #ffffff;
}

/* ===== Card Styles ===== */
.content-card,
.stats-card,
.author-card,
.category-card,
.download-card,
.share-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

html.dark .content-card,
html.dark .stats-card,
html.dark .author-card,
html.dark .category-card,
html.dark .share-card,
html.dark .download-card {
    background: var(--color-bg);
    border-color: var(--color-border);
}

/* ===== Main Content Card ===== */
.content-card {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

/* ===== Premium Metadata Bar ===== */
.file-info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-value i {
    color: #245269;
    font-size: 1.1rem;
}



/* ===== Description Area ===== */
.description-content {
    padding: 1rem 1rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
}

.description-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.description-content p {
    margin-bottom: 0.5rem;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* ===== Feedback & Rating Area ===== */
.file-feedback-container {
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
}

.feedback-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

html.dark .file-feedback-container {
    border-color: #333;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none !important;
    border: none !important;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.feedback-btn i {
    font-size: 1.1rem;
    color: var(--color-text-secondary) !important;
}

html.dark .feedback-btn {
    color: #a1a1aa !important;
}

html.dark .feedback-btn i {
    color: #a1a1aa !important;
}

.feedback-btn:hover {
    color: var(--color-primary) !important;
}

.feedback-btn:hover i {
    color: var(--color-primary) !important;
}

.feedback-btn.like-blue {
    color: #475569;
}

.feedback-btn.like-blue:hover {
    color: #245269 !important;
}

.feedback-btn.like-blue:hover i {
    color: #245269 !important;
    --fa-primary-color: #245269 !important;
    --fa-secondary-color: rgba(59, 130, 246, 0.4) !important;
}

.feedback-btn.liked {
    background: none !important;
    color: var(--color-secondary) !important;
}

.feedback-btn.liked i {
    color: var(--color-secondary) !important;
    --fa-primary-color: var(--color-secondary) !important;
    --fa-secondary-color: var(--color-secondary-light) !important;
}

.feedback-btn.report-bordeaux:hover {
    color: #843534 !important;
}

.feedback-btn.report-bordeaux:hover i {
    color: #843534 !important;
    --fa-primary-color: #843534 !important;
    --fa-secondary-color: rgba(132, 53, 52, 0.4) !important;
}

/* ===== Premium Sidebar Redesign (V2) ===== */
.premium-sidebar-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;

}

/* Sidebar Action Wrapper */
/* Sidebar Action Wrapper */
.sidebar-action-wrapper {
    margin-bottom: 0.5rem;
}

.sidebar-btn {
    width: 100%;
    height: 64px;
    background-color: #245269 !important;
    /* ORIGINAL BLUE */
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    cursor: pointer;

    /* Blue Shadow */
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    transform: translateY(-2px);

}

.sidebar-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-btn .btn-bg-icon {
    font-size: 1.4rem;
    opacity: 0.8;
}

/* Stats Widget Redesign */
.file-stats-widget {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0;
    /* Padding handled by children */
    overflow: hidden;

}



html.dark .rating-mega-header {
    background-color: #1a1a1a;
}

/* Rating Widget Container (New) */
.file-rating-widget {
    background: #ffffff;
    border-radius: 10px;

    overflow: hidden;
    /* Stats widget ile arası boşluk */
    border: 1px solid var(--color-border);
}

.rating-mega-header {
    background-color: #FCF8E3;
    /* Core Light Yellow */
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rmh-score-box {
    background: #66512C;
    /* Core Dark Yellow */
    color: #FCF8E3;
    /* Core Light Yellow */
    width: 60px;
    border-radius: 10px;
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-list-container {
    padding: 15px;
    /* Fixed padding */
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    /* Better gap */
}

.fsw-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.fsw-label {
    flex: 1;
    /* PUSHES VALUE TO RIGHT */
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fsw-value {
    font-weight: 900;
    color: var(--color-text);
}

.fsw-icon {
    width: 38px;
    height: 38px;
    background: var(--color-bg-tertiary);
    border-radius: 10px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.fsw-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

.fsw-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text);
}

/* Sidebar Download Card */
.sidebar-download-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sdc-bg-icon {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 9rem;
    color: var(--color-secondary);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

html.dark .sidebar-download-card {
    background: #0a0a0a;
}

.sdc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

html.dark .sdc-header {
    border-bottom-color: #333;
}

.sdc-header i {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.sdc-header span {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-text);
}

.sdc-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.sdc-input {
    width: 100%;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.2s;
}

.sdc-input:focus {
    border-color: var(--color-secondary);
    outline: none;
    background: var(--color-bg);
}

.sdc-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.sdc-terms {
    margin-top: 10px;
    margin-bottom: 10px;
}

.sdc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.sdc-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sdc-checkbox:checked {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.sdc-checkbox::after {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: white;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.sdc-checkbox:checked::after {
    transform: scale(1);
}

.sdc-checkbox-text {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

html.dark .sdc-checkbox {
    background-color: #0f172a;
    border-color: #334155;
}

.sdc-checkbox-text a {
    color: var(--color-secondary);
    font-weight: 700;
    text-decoration: none;
}

.sdc-btn {
    width: 100%;
    padding: 0.75rem;
    background: #217346 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: none !important;
}

.sdc-btn i {
    color: #ffffff !important;
    --fa-primary-color: #ffffff !important;
    --fa-secondary-color: #ffffff !important;
}

.sdc-btn:hover,
.sdc-btn:active,
.sdc-btn:focus {
    background: #217346 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

html.dark .sdc-btn {
    background: #262626 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

html.dark .sdc-btn:hover {
    background: #333 !important;
}

/* ===== Sidebar Download Button (User Provided) ===== */
.sidebar-action-wrapper {
    margin-bottom: 1.5rem;
}

.btn-download-popup.sidebar-btn {
    accent-color: #843534 !important;
    background: #245269;
    color: #ffffff;
    border: none;
    height: 70px;
    padding: 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    width: 100%;
    box-shadow: 0 4px 15px rgba(36, 82, 105, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

/* ===== Sidebar Download Button ===== */
.sidebar-action-wrapper {
    margin-bottom: 1.5rem;
}

.btn-download-popup.sidebar-btn {
    background: #245269;
    /* Desired Blue */
    color: #ffffff;
    border: none;
    height: 70px;
    padding: 0 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    width: 100%;

    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.sidebar-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-btn .btn-bg-icon {
    font-size: 1.8rem;
    opacity: 0.2;
}

.sidebar-btn:hover {
    background: #1a3c4d;
    transform: translateY(-2px);

}

/* ===== File Stats Widget (Card 2) ===== */
.file-stats-widget {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    position: relative;
}



.stats-v {
    font-weight: 900;
    color: var(--color-text);
    font-size: 1.1rem;
}

.stat-v {
    font-weight: 900;
    color: var(--color-text);
    font-size: 1rem;
}

.rating-stars-mini {
    display: flex;
    gap: 3px;
    font-size: 0.95rem;
    color: #2B542C;
    /* Rating Stars Green */
    margin-bottom: 2px;
}

.rating-count-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: #66512C;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-list-container {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.fsw-row {
    display: flex;
}

.fsw-row i {
    color: #245269;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
}

.fsw-label {
    flex: 1;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.fsw-value {
    font-weight: 900;
    color: var(--color-text);
    font-size: 1.05rem;
}



/* ===== Modern Share Pill Widget ===== */
.modern-share-pill {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    height: 70px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.share-p-grid {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.25rem;
    transition: transform 0.2s;
}

/* Hover effect removed */

.share-btn.wa {
    background: #25d366;
}

.share-btn.tw {
    background: #1da1f2;
}

.share-btn.fb {
    background: #1877f2;
}

.share-btn.li {
    background: #0a66c2;
}

.share-bg-icon {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 7rem;
    color: #245269;
    opacity: 0.05;
    z-index: 1;
}

html.dark .file-stats-widget,
html.dark .modern-share-pill {
    background: #0a0a0a;
}

.share-bg-icon {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 9rem;
    color: var(--color-secondary);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

html.dark .modern-share-pill {
    background: #000000;
}

.share-p-header {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.share-p-grid {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-start;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Hover effect removed */

.share-btn.wa {
    background: #25d366;
}

.share-btn.tw {
    background: #1da1f2;
}

.share-btn.fb {
    background: #1877f2;
}

.share-btn.li {
    background: #0a66c2;
}

.share-btn.copy-url {
    background: #000000 !important;
    color: #ffffff !important;
}

.share-btn.copy-url i {
    color: #ffffff !important;
    --fa-primary-color: #ffffff !important;
    --fa-secondary-color: #ffffff !important;
}

/* ===== Feedback & Rating Section (Main Content) ===== */
.file-feedback-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .file-feedback-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

.feedback-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.feedback-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-btn:hover {
    opacity: 0.8;
}

/* Feedback Buttons - Corrected Colors (NO GREEN!) */
.feedback-btn.like-blue {
    color: var(--color-secondary) !important;
    --fa-primary-color: var(--color-secondary) !important;
    --fa-secondary-color: var(--color-secondary) !important;
}

.feedback-btn.report-bordeaux {
    color: #800000 !important;
    --fa-primary-color: #800000 !important;
    --fa-secondary-color: #800000 !important;
}



/* ===== Main Content Navigation & Ad ===== */
.main-promo-wrapper {
    margin-top: 1.5rem;
}

.main-navigation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.horizontal-nav-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 0 2rem;
    height: 70px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.next-item .horizontal-nav-btn {
    justify-content: flex-end;
}

.horizontal-nav-btn:hover {
    background: var(--color-bg-secondary);
}

.horizontal-nav-btn i {
    font-size: 60px;
    color: var(--color-secondary);
    opacity: 0.25;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    --fa-primary-color: var(--color-secondary) !important;
    --fa-secondary-color: #3b82f6 !important;
    --fa-secondary-opacity: 0.8 !important;
}

.prev-item .horizontal-nav-btn i {
    left: -10px;
}

.next-item .horizontal-nav-btn i {
    right: -10px;
}

.horizontal-nav-btn .btn-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.horizontal-nav-btn .btn-info.align-right {
    text-align: right;
}

.horizontal-nav-btn .btn-info span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.horizontal-nav-btn .btn-info strong {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Download Button */
.sidebar-action-wrapper {
    margin: 0;
    width: 100%;
}

.btn-download-popup.sidebar-btn {
    background: var(--color-secondary);
    color: #ffffff;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    width: 100%;
    box-shadow: none;
    border-radius: 8px;
    /* Added subtle radius */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.btn-download-popup.sidebar-btn:hover {
    background: var(--color-secondary-dark);
    color: #ffffff;
    transform: none;
    /* Removed movement */
    box-shadow: none;
    /* Removed shadow */
}

/* Force icon color to white */
.btn-download-popup.sidebar-btn i {
    color: #ffffff !important;
    --fa-primary-color: #ffffff !important;
    --fa-secondary-color: #ffffff !important;
}

html.dark .btn-download-popup.sidebar-btn {
    background: var(--color-secondary);
    border: none;
    color: #ffffff;
}

html.dark .btn-download-popup.sidebar-btn:hover {
    background: var(--color-secondary-dark);
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--color-error);
    color: #ffffff;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-input-group {
    display: flex;
    align-items: stretch;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.modal-input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(33, 115, 70, 0.1);
}

.mig-icon {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border-right: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
}

html.dark .mig-icon {
    background: #1a1a1a;
    border-right-color: #333;
}

.modal-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 1rem !important;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.modal-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(33, 115, 70, 0.2);
}

.modal-submit-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 115, 70, 0.3);
}

/* Report Modal Specific Styles (Danger/Bordeaux Theme) */
#report-modal .modal-header i {
    color: #843534 !important;
}

#report-modal .modal-header {
    background: #F2DEDE;
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 2.5rem;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(132, 53, 52, 0.1);
}

#report-form .modal-submit-btn {
    background: #843534 !important;
    color: #F2DEDE !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

#report-form .modal-submit-btn:hover,
#report-form .modal-submit-btn:active,
#report-form .modal-submit-btn:focus {
    background: #843534 !important;
    color: #F2DEDE !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
}

#report-form .modal-submit-btn i {
    color: #F2DEDE !important;
    --fa-primary-color: #F2DEDE !important;
    --fa-secondary-color: #F2DEDE !important;
}

#report-modal .mig-icon {
    color: #843534 !important;
}

#report-modal .modal-checkbox-text a {
    color: #843534 !important;
}

#report-modal .modal-close:hover {
    background: #843534 !important;
    color: #F2DEDE !important;
}

#report-modal .modal-close:hover i {
    color: #F2DEDE !important;
    --fa-primary-color: #F2DEDE !important;
    --fa-secondary-color: #F2DEDE !important;
}

#report-modal i {
    --fa-primary-color: #843534 !important;
    --fa-secondary-color: rgba(132, 53, 52, 0.4) !important;
}

.modal-submit-btn i {
    color: #ffffff !important;
    --fa-primary-color: #ffffff !important;
    --fa-secondary-color: #ffffff !important;
}

.modal-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.modal-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    margin: 0;
    border: 2px solid #cbd5e1 !important;
    border-radius: 6px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
}

.modal-checkbox:hover {
    border-color: var(--color-primary) !important;
    background-color: rgba(0, 0, 0, 0.02);
}

#report-modal .modal-checkbox {
    accent-color: #843534 !important;
}

#report-modal .modal-checkbox:hover {
    border-color: #843534 !important;
}

#report-modal .modal-checkbox:focus {
    outline: 2px solid #843534;
}

.modal-checkbox-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.modal-checkbox-text a {
    color: var(--color-primary);
    font-weight: 700;
}

html.dark .modal-content {
    background: #0d0d0d;
}

html.dark .mig-icon {
    background: #1a1a1a;
}

/* ===== Horizontal Promo Area - ARTISTIC STATIC ===== */
.horizontal-nav-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    background: linear-gradient(135deg, #1e3a5f 0%, #152a45 100%);
    border-radius: 10px;
    padding: 0 3rem;
    height: 60px;
    position: relative;
    overflow: hidden;
    border: none !important;
}

html.dark .horizontal-nav-promo {
    background: #111;
    border: 1px solid #333 !important;
}

.promo-content {
    z-index: 2;
    text-align: center;
}

.promo-label {
    font-size: 1.1rem;
    font-weight: 950;
    color: white;
    letter-spacing: 0.25em;
    text-shadow: none !important;
}

.promo-icon-left {
    position: absolute;
    left: 0px;
    /* Flush to left */
    top: 0px;
    /* Flush to top */
    bottom: 0px;
    /* Flush to bottom */
    display: flex;
    align-items: center;
    z-index: 1;
}

.promo-icon-left i {
    font-size: 8rem;
    /* Massive size to fill height */
    color: white;
    opacity: 0.45;
    /* MUCH MORE VISIBLE & WHITER */
    transform: rotate(0deg);
    /* NO ROTATION */
    display: block;
    --fa-primary-color: #ffffff !important;
    --fa-secondary-color: #cccccc !important;
    --fa-secondary-opacity: 0.6 !important;
}


.promo-icon-right {
    position: absolute;
    right: 10px;
    /* Moved inward */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.promo-icon-right i {
    font-size: 6rem;
    color: white;
    opacity: 0.45;
    /* SYNCED WITH LEFT ICON */
    transform: rotate(-15deg);
    display: block;
    --fa-primary-color: #ffffff !important;
    --fa-secondary-color: #cccccc !important;
    --fa-secondary-opacity: 0.6 !important;
}


.promo-spacer {
    height: 100%;
}

/* Sidebar Download Popup Button - Custom Color & Deco Style */
.btn-download-popup.sidebar-btn {
    width: 100%;
    min-height: 64px;
    /* Reduced from 80px */
    padding: 0 1.25rem;
    background: #245269;
    /* Custom BG Color */
    color: #D9EDF7;
    /* Custom Text Color */
    border: none;
    border-radius: 10px;
    font-size: 1.25rem;
    /* Adjusted for new height */
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    /* box-shadow removed */
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-download-popup.sidebar-btn .btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-download-popup.sidebar-btn .btn-text i {
    font-size: 1.6rem;
    color: #D9EDF7;
}

.btn-download-popup.sidebar-btn .btn-bg-icon {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 4.5rem;
    /* Adjusted for new height */
    color: #D9EDF7;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

.btn-download-popup.sidebar-btn:hover {
    background: #1e4558;
    /* Slightly darker shade */
}

html.dark .btn-download-popup.sidebar-btn {
    background: #245269;
    color: #D9EDF7;
}

html.dark .btn-download-popup.sidebar-btn:hover {
    background: #1e4558;
}

/* ===== Form Elements - Premium Input Wrapper ===== */
.premium-input-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.premium-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(33, 115, 70, 0.1);
}

.input-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.premium-input-wrapper .form-input {
    border: none !important;
    background: transparent !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600;
    color: var(--color-text);
    height: auto !important;
}

.premium-input-wrapper .form-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

html.dark .premium-input-wrapper {
    background: #0a0a0a;
    border-color: #262626;
}

html.dark .input-icon-box {
    background: #141414;
    border-color: #262626;
    color: #a1a1aa;
}


.btn-download {
    width: 100%;
    padding: 1.125rem;
    background: var(--color-primary);
    color: #ffffff !important;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-small {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    width: auto !important;
    min-width: 220px;
}

/* ===== Custom Checkbox Styling ===== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    /* VERTICALLY CENTERED */
    gap: 0.875rem;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-secondary);
    cursor: pointer;
    margin: 0;
    /* Premium Gray Border */
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.checkbox-wrapper input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    background-color: CanvasText;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-wrapper input[type="checkbox"]:checked::before {
    transform: scale(1);
}

html.dark .checkbox-wrapper input[type="checkbox"] {
    background-color: #0f172a;
    border-color: #334155;
}

.checkbox-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    line-height: normal;
    /* Fixed line height for centering */
}

.checkbox-text a {
    color: var(--color-secondary);
    text-decoration: none !important;
    /* NO UNDERLINE */
    font-weight: 800;
}

.checkbox-text a:hover {
    color: var(--color-secondary-dark);
}


.btn-download i {
    --fa-primary-color: #ffffff !important;
    --fa-secondary-color: rgba(255, 255, 255, 0.4) !important;
}

html.dark .btn-download {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.download-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.feature-item i {
    color: var(--color-primary);
}

/* ===== Share Card ===== */
.share-card {
    padding: 1.5rem;
}

.share-card h4 {
    font-size: 0.9375rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    text-decoration: none;
}

.whatsapp {
    background: #25d366;
}

.twitter {
    background: #1da1f2;
}

.facebook {
    background: #1877f2;
}

.linkedin {
    background: #0a66c2;
}

.copy {
    background: #64748b;
    border: none;
    cursor: pointer;
}

html.dark .share-btn {
    background: #000000 !important;
    border: 1px solid var(--color-border);
    color: #ffffff !important;
}

html.dark .share-btn:hover {
    border-color: #ffffff;
}

html.dark .share-btn i {
    color: #ffffff !important;
}

/* ===== Related Files Section - Flat & Classic ===== */
.related-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 1rem;
    text-align: left;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0;
}

.related-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 0 30px 0;
}

.related-premium-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-category {
    margin-bottom: 1rem;
}

.cat-pill {
    color: #245269;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-pill i {
    --fa-primary-color: #245269 !important;
    --fa-secondary-color: #245269 !important;
    --fa-secondary-opacity: 0.4 !important;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-item i {
    color: #245269 !important;
    --fa-primary-color: #245269 !important;
    --fa-secondary-color: #245269 !important;
    --fa-secondary-opacity: 0.4 !important;
    font-size: 1.1rem;
    font-weight: 900;
}

.meta-item.stars {
    color: #2b542c;
    /* Rating Green */
}

.meta-item.stars i {
    color: #2B542C !important;
    --fa-primary-color: #2B542C !important;
    --fa-secondary-color: #2B542C !important;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-more {
    font-size: 0.9rem;
    font-weight: 800;
    color: #245269;
    text-transform: uppercase;
}

.card-footer i {
    color: #245269 !important;
    --fa-primary-color: #245269 !important;
    --fa-secondary-color: #245269 !important;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.card-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 7rem;
    color: #245269 !important;
    --fa-primary-color: #245269 !important;
    --fa-secondary-color: #245269 !important;
    opacity: 0.1 !important;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-premium-card:hover .card-bg-icon {
    transform: rotate(-15deg) scale(1.1);
}

/* Dark Mode Adaptation */
html.dark .related-premium-card {
    background: #000;
}

/* Section Header */
.section-header {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text);
}

@media (max-width: 992px) {
    .related-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-premium-grid {
        grid-template-columns: 1fr;
    }
}