/* ==========================================
   Custom Neumorphism Overrides for Game Server
   ========================================== */

/* Global Font */
body {
    font-family: 'Montserrat', 'Nunito Sans', sans-serif;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: 'NarCon', 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: #e6d4a8;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(197, 160, 89, .35);
}

.hero-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(165deg, #f0e4c8 0%, #c5a059 42%, #9a7a3d 100%);
    color: #1c1612 !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(197, 160, 89, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
    filter: brightness(1.05);
    text-decoration: none;
    color: #1c1612 !important;
}

.hero-btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: var(--gold-soft, #e6d4a8) !important;
    border: 2px solid rgba(197, 160, 89, .45);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(197, 160, 89, .15);
    border-color: var(--gold, #c5a059);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.hero-image-col {
    position: relative;
}

.hero-image {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 40px 0 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-links {
        justify-content: center;
    }

    .hero-image {
        max-height: 320px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-image {
        max-height: 240px;
    }
}

/* ==========================================
   Player Class Cards (Top Players)
   ========================================== */
.player-icon-neu {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 6px 6px 11px #d9d9d9, -6px -6px 11px #ffffff;
    transition: opacity 0.3s ease;
}

.player-icon-wrap {
    display: inline-block;
    position: relative;
    width: 150px;
    height: 150px;
}
.player-icon-wrap .default {
    display: inline-block;
}
.player-icon-wrap .hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.player-icon-wrap:hover .default {
    opacity: 0;
}
.player-icon-wrap:hover .hover {
    opacity: 1;
}

.ranking-class-icon-wrap {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
}
.ranking-class-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.ranking-class-icon-wrap .default {
    display: inline-block;
}
.ranking-class-icon-wrap .hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.ranking-class-icon-wrap:hover .default {
    opacity: 0;
}
.ranking-class-icon-wrap:hover .hover {
    opacity: 1;
}

/* ==========================================
   Tables (Neumorphism style)
   ========================================== */

/* ==========================================
   Class Showcase (Top Players)
   ========================================== */
@font-face {
    font-family: 'NarCon';
    src: url('/images/iconsRank/NarCon-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.classes-showcase {
    position: relative;
    padding: 0 60px;
}

.classes-card {
    display: none;
}

.classes-card.active {
    display: block;
    animation: classFadeIn 0.4s ease;
}

@keyframes classFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.classes-card .card {
    position: relative;
    overflow: visible !important;
}

.classes-image-col {
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 0.55rem 0 0 0;
}

.classes-char-img {
    max-height: 320px;
    position: relative;
    z-index: 15;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
    pointer-events: none;
}

.classes-card:hover .classes-char-img {
    transform: scale(1.05);
}

/* Desktop: image overflows card */
@media (min-width: 992px) {
    .classes-showcase {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .classes-image-col {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 42%;
        min-height: auto;
        overflow: visible;
        background-size: cover;
        background-position: center;
        border-radius: 0;
        z-index: 15;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .classes-char-img {
        max-height: 480px;
        position: relative;
    }
    .classes-card .card > .row {
        min-height: 320px;
    }
    .classes-card .card > .row > .col-md-7 {
        margin-left: 42%;
        padding-bottom: 60px !important;
    }
}

@media (min-width: 1200px) {
    .classes-showcase {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .classes-image-col {
        width: 45%;
    }
    .classes-char-img {
        max-height: 560px;
    }
    .classes-card .card > .row > .col-md-7 {
        margin-left: 45%;
        width: 55%;
    }
}

.classes-name {
    font-family: 'NarCon', 'Nunito Sans', sans-serif;
    font-size: 2rem;
    color: #31344b;
    letter-spacing: 1px;
}

/* Class Stats Image */
.classes-stats-img {
    flex-shrink: 0;
    width: 100px;
}

.classes-stats-img img {
    width: 100%;
    height: auto;
}

/* Best Player Bar */
.classes-best-bar {
    background-color: rgb(200, 70, 68);
    color: #fff;
    text-align: center;
    padding: 4px 20px;
    margin: 1px;
}

.classes-best-bar span {
    display: block;
}

.classes-best-bar .classes-best-title {
    font-size: 0.75rem;
    line-height: 1rem;
}

.classes-best-bar .classes-best-player {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
}

.classes-best-bar .classes-best-player a {
    color: #fff !important;
    text-decoration: none;
}

@media (min-width: 992px) {
    .classes-best-bar {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 75%;
        margin: 0;
        padding: 10px 20px 10px 8rem;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        z-index: 6;
    }
    .classes-best-bar span {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .classes-best-bar .classes-best-player {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

/* Navigation Arrows */
.classes-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e6e7ee;
    border: 1px solid rgba(209, 214, 230, 0.3);
    box-shadow: 0px -2px 11px;
    color: #c0392b;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.classes-arrow:hover {
    box-shadow: inset 2px 2px 5px #d9d9d9, inset -2px -2px 5px #ffffff;
    color: #e74c3c;
}

.classes-arrow-left {
    left: 0;
}

.classes-arrow-right {
    right: 0;
}

@media (max-width: 767px) {
    .classes-showcase {
        padding: 0 45px;
    }

    .classes-image-col {
        min-height: 220px;
    }

    .classes-char-img {
        max-height: 200px;
    }

    .classes-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .classes-name {
        font-size: 1.5rem;
    }

    .classes-diamond {
        display: none;
    }
}

/* ==========================================
   Tables (Neumorphism style) - continued
   ========================================== */
.table-flush {
    width: 100%;
    border-collapse: collapse;
}

.table-flush th,
.table-flush td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-flush thead th {
    background-color: transparent;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    color: #31344b;
}

.table-flush tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Ranking header and empire row colors */
.ranking-thead {
    background: linear-gradient(135deg, #b33939, #cd6133);
    color: #fff;
}
.ranking-thead th {
    color: #fff !important;
    border-bottom: none !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}
.ranking-row.empire-1 {
    background-color: rgba(255, 217, 61, 0.25);
}
.ranking-row.empire-2 {
    background-color: rgba(162, 196, 224, 0.25);
}
.ranking-row.empire-3 {
    background-color: rgba(255, 179, 102, 0.25);
}
.ranking-row.empire-1:hover {
    background-color: rgba(255, 217, 61, 0.4);
}
.ranking-row.empire-2:hover {
    background-color: rgba(162, 196, 224, 0.4);
}
.ranking-row.empire-3:hover {
    background-color: rgba(255, 179, 102, 0.4);
}

/* Ranking responsive hiding */
@media only screen and (max-width: 767px) {
    .ranking-exp, .ranking-guild-points {
        display: none;
    }
}

@media only screen and (max-width: 530px) {
    .ranking-guild, .ranking-guild-loss, .ranking-guild-draw {
        display: none;
    }
}

@media only screen and (max-width: 450px) {
    .ranking-class, .ranking-empire {
        display: none;
    }
}

/* ==========================================
   Ranking class images
   ========================================== */
.ranking-class img {
    max-width: 32px;
}

/* ==========================================
   Profile Abilities (ability sprites)
   ========================================== */
.ability-warrior-0 {
    margin: auto;
    background-image: url('/images/profile/ability.png');
    width: 32px; height: 32px;
    background-position: 64px 0px;
}
.ability-warrior-1 {
    margin: auto;
    background-image: url('/images/profile/ability.png');
    width: 32px; height: 32px;
    background-position: 32px 0px;
}
.ability-assassin-0 {
    margin: auto;
    background-image: url('/images/profile/ability.png');
    width: 32px; height: 32px;
    background-position: 96px 0px;
}
.ability-assassin-1 {
    margin: auto;
    background-image: url('/images/profile/ability.png');
    width: 32px; height: 32px;
    background-position: 128px 0px;
}
.ability-shura-0 {
    margin: auto;
    background-image: url('/images/profile/ability.png');
    width: 32px; height: 32px;
    background-position: 160px 0px;
}
.ability-shura-1 {
    margin: auto;
    background-image: url('/images/profile/ability.png');
    width: 32px; height: 32px;
    background-position: 192px 0px;
}
.ability-shaman-0 {
    margin: auto;
    background-image: url('/images/profile/ability.png');
    width: 32px; height: 32px;
    background-position: 256px 0px;
}
.ability-shaman-1 {
    margin: auto;
    background-image: url('/images/profile/ability.png');
    width: 32px; height: 32px;
    background-position: 224px 0px;
}
.ability-lycan-0 {
    margin: auto;
    background-image: url('/images/profile/ability.png');
    width: 32px; height: 32px;
    background-position: 0px 0px;
}

/* ==========================================
   Player Profile
   ========================================== */
.player-profile {
    background-image: url('/images/profile/background.webp');
    background-repeat: no-repeat;
}

.player-profile > table > tbody > tr > td {
    padding: 10px 80px;
}

/* ==========================================
   Alignment Classes
   ========================================== */
.align-chivalric { color: #3399FF; font-size: 15px; text-shadow: 1px 1px 0px rgba(0,0,0,0.1); }
.align-noble { color: #0066CC; font-size: 15px; text-shadow: 1px 1px 0px rgba(0,0,0,0.1); }
.align-good { color: #003366; font-size: 15px; text-shadow: 1px 1px 0px rgba(0,0,0,0.1); }
.align-friendly { color: #336699; font-size: 15px; text-shadow: 1px 1px 0px rgba(0,0,0,0.1); }
.align-neutral { color: #666; font-size: 15px; text-shadow: 1px 1px 0px rgba(0,0,0,0.1); }
.align-aggressive { color: #660000; font-size: 15px; text-shadow: 1px 1px 0px rgba(0,0,0,0.1); }
.align-fraudulent { color: #990000; font-size: 15px; text-shadow: 1px 1px 0px rgba(0,0,0,0.1); }
.align-malicious { color: #CC0000; font-size: 15px; text-shadow: 1px 1px 0px rgba(0,0,0,0.1); }
.align-cruel { color: #FF0000; font-size: 15px; text-shadow: 1px 1px 0px rgba(0,0,0,0.1); }

/* ==========================================
   Word Cloud
   ========================================== */
.word-cloud {
    padding: 15px;
    margin: 15px;
}

ul.cloud {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    line-height: 2.75rem;
    width: 450px;
}

ul.cloud a {
    --size: 4;
    --color: #31344b;
    color: var(--color);
    font-size: calc(var(--size) * 0.25rem + 0.5rem);
    display: block;
    padding: 0.125rem 0.25rem;
    position: relative;
    text-decoration: none;
}

ul.cloud a[data-weight="1"] { --size: 1; }
ul.cloud a[data-weight="2"] { --size: 2; }
ul.cloud a[data-weight="3"] { --size: 3; }
ul.cloud a[data-weight="4"] { --size: 4; }
ul.cloud a[data-weight="5"] { --size: 6; }
ul.cloud a[data-weight="6"] { --size: 8; }
ul.cloud a[data-weight="7"] { --size: 10; }
ul.cloud a[data-weight="8"] { --size: 13; }
ul.cloud a[data-weight="9"] { --size: 16; }

ul[data-show-value] a::after {
    content: " (" attr(data-weight) ")";
    font-size: 1rem;
}

ul.cloud a:focus {
    outline: 1px dashed;
}

ul.cloud a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: var(--color);
    transform: translate(-50%, 0);
    opacity: 0.15;
    transition: width 0.25s;
}

/* ==========================================
   Misc Overrides for Neumorphism 
   ========================================== */

/* ==========================================
   Download Bar (Dark)
   ========================================== */
.download-bar {
    padding: 30px 0;
}

.download-bar-title {
    font-family: 'NarCon', 'Nunito Sans', sans-serif;
    color: #c0392b;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.download-bar-text {
    display: block;
    color: #666;
    font-size: 0.85rem;
}

.download-bar-btn {
    display: inline-flex;
    align-items: center;
    /* border: 2px solid rgba(209, 214, 230, 0.5); */
    border-radius: 10px;
    padding: 10px 24px;
    color: #a91e2c !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 5px 5px;
}

.download-bar-btn:hover {
    border-color: #c0392b;
    background: rgba(192, 57, 43, 0.04);
    text-decoration: none;
    color: #c0392b !important;
    transform: translateY(-2px);
}

.download-bar-btn-icon {
    font-size: 1.6rem;
    margin-right: 14px;
    color: #31344b;
}

.download-bar-btn:hover .download-bar-btn-icon {
    color: #c0392b;
}

.download-bar-btn-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.download-bar-btn-info strong {
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.download-bar-btn-info small {
    color: #999;
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .download-bar {
        text-align: center;
    }
    .download-bar .text-right {
        text-align: center !important;
    }
}

/* ==========================================
   News & Community (Tabbed)
   ========================================== */
.news-section-title {
    font-family: 'NarCon', 'Nunito Sans', sans-serif;
    font-size: 1.8rem;
    color: #c0392b;
    letter-spacing: 1px;
    padding: 10px 40px;
    border: 2px solid rgba(192, 57, 43, 0.25);
    border-radius: 10px;
    display: inline-block;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tab {
    background: transparent;
    border: none;
    padding: 8px 18px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.news-tab:hover {
    color: #c0392b;
}

.news-tab.active {
    color: #c0392b;
    border-bottom-color: #c0392b;
    font-weight: 600;
}

/* News List Layout */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-item {
    background: rgba(20, 20, 25, 0.85);
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease;
}

.news-item:hover {
    border-left-color: #c0392b;
}

.news-item.active {
    border-left-color: #c0392b;
}

.news-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    gap: 16px;
    transition: background 0.2s ease;
}

.news-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.news-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 3px;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
    flex-shrink: 0;
}

.news-badge-event {
    background: rgba(192, 57, 43, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(192, 57, 43, 0.4);
}

.news-badge-update {
    background: rgba(41, 128, 185, 0.2);
    color: #3498db;
    border: 1px solid rgba(41, 128, 185, 0.4);
}

.news-badge-news {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.4);
}

.news-badge-tutorial {
    background: rgba(142, 68, 173, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(142, 68, 173, 0.4);
}

.news-title {
    flex: 1;
    font-size: 0.9rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.news-date {
    font-size: 0.8rem;
    color: #c0392b;
    white-space: nowrap;
}

/* News Preview (Expandable) */
.news-preview {
    display: none;
    padding: 0 20px 18px 20px;
    animation: newsSlideDown 0.3s ease;
}

.news-item.active .news-preview {
    display: block;
}

@keyframes newsSlideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 400px; }
}

.news-preview-content {
    display: flex;
    gap: 18px;
    padding: 16px;
    background: rgba(30, 30, 35, 0.7);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-preview-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-preview-text {
    flex: 1;
    min-width: 0;
}

.news-preview-text p {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-read-more {
    display: inline-block;
    font-size: 0.8rem;
    color: #c0392b;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.news-read-more:hover {
    background: rgba(192, 57, 43, 0.15);
    color: #e74c3c;
    text-decoration: none;
}

@media (max-width: 768px) {
    .news-row {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 8px;
    }
    .news-badge {
        min-width: auto;
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .news-title {
        width: 100%;
        order: 3;
        white-space: normal;
    }
    .news-preview-content {
        flex-direction: column;
    }
    .news-preview-img {
        width: 100%;
        height: 150px;
    }
}

/* Tooltip */
.tooltip-inner {
    max-width: 350px;
    text-align: start;
}

/* Section spacing */
.section {
    position: relative;
}

/* Card header */
.card-header {
    border-bottom: none;
    background: transparent;
}

/* ==========================================
   Tiny Slider overrides for neumorphism
   ========================================== */
.tns-outer {
    position: relative;
}

/* ==========================================
   Badge & Button Dark Overrides
   ========================================== */
.badge {
    box-shadow: none !important;
}

.badge-danger {
    background-color: rgba(169, 30, 44, 0.25) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.25);
}

.badge-success {
    background-color: rgba(39, 174, 96, 0.25) !important;
    color: #2ecc71 !important;
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.badge-warning {
    background-color: rgba(197, 160, 89, 0.20) !important;
    color: #e6d4a8 !important;
    border: 1px solid rgba(197, 160, 89, 0.30);
}

.badge-primary {
    background-color: rgba(197, 160, 89, 0.15) !important;
    color: #c5a059 !important;
    border: 1px solid rgba(197, 160, 89, 0.20);
    box-shadow: none !important;
}

.badge-light {
    background-color: rgba(197, 160, 89, 0.08) !important;
    color: rgba(230, 212, 168, 0.6) !important;
    border: 1px solid rgba(197, 160, 89, 0.12);
}

.btn-primary.shadow-soft.border.border-light,
.btn-secondary.shadow-soft,
.btn-primary.shadow-soft {
    background: rgba(197, 160, 89, 0.10) !important;
    border: 1px solid rgba(197, 160, 89, 0.20) !important;
    color: #e6d4a8 !important;
    box-shadow: none !important;
}

.btn-primary.shadow-soft.border.border-light:hover,
.btn-secondary.shadow-soft:hover,
.btn-primary.shadow-soft:hover {
    background: rgba(197, 160, 89, 0.20) !important;
    border-color: rgba(197, 160, 89, 0.35) !important;
    color: #fff !important;
}

.card.bg-primary.shadow-soft.border-light,
.card.bg-primary.shadow-inset.border-light {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(197, 160, 89, 0.10) !important;
    box-shadow: none !important;
}

.alert-primary.shadow-soft.border.border-light {
    background: rgba(197, 160, 89, 0.06) !important;
    border: 1px solid rgba(197, 160, 89, 0.12) !important;
    color: rgba(230, 212, 168, 0.6) !important;
    box-shadow: none !important;
}

/* ==========================================
   SweetAlert2 Dark + Gold Overrides
   ========================================== */
.swal2-popup {
    background: #1a1714;
    color: #e6d4a8;
    border-radius: 0.75rem;
    border: 1px solid rgba(197, 160, 89, 0.20);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.swal2-title {
    color: #e6d4a8;
}

.swal2-html-container,
.swal2-html-container * {
    color: rgba(230, 212, 168, 0.75);
}

.swal2-input,
.swal2-textarea,
.swal2-popup .form-control {
    background: rgba(0, 0, 0, 0.30);
    color: #f0e6d0;
    border: 1px solid rgba(197, 160, 89, 0.20);
    box-shadow: none;
    border-radius: 0.5rem;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder,
.swal2-popup .form-control::placeholder {
    color: rgba(197, 160, 89, 0.35);
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-popup .form-control:focus {
    border-color: #c5a059;
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15);
    outline: none;
}

.swal2-styled.swal2-confirm {
    background: linear-gradient(180deg, #d4a94e 0%, #c5a059 50%, #b8923e 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.25);
    border-radius: 0.5rem;
    color: #1a1714;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.swal2-styled.swal2-confirm:hover {
    background: linear-gradient(180deg, #e0b85a 0%, #d4a94e 50%, #c5a059 100%);
}

.swal2-styled.swal2-cancel {
    background: rgba(197, 160, 89, 0.10);
    border: 1px solid rgba(197, 160, 89, 0.20);
    box-shadow: none;
    border-radius: 0.5rem;
    color: #e6d4a8;
    font-weight: 600;
}

.swal2-styled.swal2-cancel:hover {
    background: rgba(197, 160, 89, 0.20);
}

.swal2-validation-message {
    background: rgba(169, 30, 44, 0.15);
    color: #e74c3c;
    box-shadow: none;
    border: 1px solid rgba(231, 76, 60, 0.20);
}

.swal2-footer {
    border-top: 1px solid #D1D9E6;
    color: #44476A;
}

.swal2-close {
    color: #44476A;
}

.swal2-close:hover {
    color: #A91E2C;
}

.swal2-icon.swal2-info {
    border-color: #0648B3;
    color: #0648B3;
}

.swal2-icon.swal2-success {
    border-color: #18634B;
    color: #18634B;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #18634B;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(24, 99, 75, 0.3);
}

.swal2-icon.swal2-error {
    border-color: #A91E2C;
    color: #A91E2C;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #A91E2C;
}

.swal2-icon.swal2-warning {
    border-color: #F0B400;
    color: #F0B400;
}

html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    margin-top: auto;
}

.footer .card {
    margin-bottom: 0;
}

/* ==========================================
   News Cards Panel (Mirovia-inspired)
   ========================================== */
.news-cards-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: rgba(18, 16, 10, 0.95);
    border-radius: 1.5rem;
    padding: 1rem;
    margin-bottom: 0;
    position: relative;
    gap: 0.5rem;
    z-index: 1;
    border: 1px solid rgba(197, 160, 89, 0.15);
    overflow: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.news-cards-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('/images/bg_news_card.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: -1;
    border-radius: 1.5rem;
    opacity: 0.25;
}

/* Individual news card */
.news-card-item {
    display: block;
    width: 300px;
    min-height: 332px;
    background-color: rgba(25, 22, 15, 0.9);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    opacity: 0.85;
    flex-shrink: 0;
}

.news-card-item:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    text-decoration: none;
    opacity: 1;
}

.news-card-item:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-img-wrap {
    width: 100%;
    height: 195px;
    overflow: hidden;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.news-card-item .news-card-date {
    color: rgba(197, 160, 89, 0.7);
    font-size: 0.85rem;
    margin: 0.5rem 0.75rem 0.25rem;
    display: block;
}

.news-card-item .news-card-title {
    color: #e6d4a8;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0.75rem 0.75rem;
    line-height: 1.4;
}

.news-card-item .news-card-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 3px;
    margin: 0.5rem 0.75rem 0;
}

.news-card-badge-news {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.3);
}
.news-card-badge-update {
    background: rgba(41, 128, 185, 0.2);
    color: #3498db;
    border: 1px solid rgba(41, 128, 185, 0.3);
}
.news-card-badge-event {
    background: rgba(192, 57, 43, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(192, 57, 43, 0.3);
}
.news-card-badge-tutorial {
    background: rgba(142, 68, 173, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(142, 68, 173, 0.3);
}

/* Action buttons column */
.news-cards-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    gap: 1rem;
}

.news-card-action-btn {
    display: flex;
    align-items: center;
    width: 320px;
    height: 70px;
    border-radius: 0.75rem;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0 1.5rem;
    transition: transform 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
    background: url('/images/news-card-assets.png');
}

.news-card-action-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    text-decoration: none;
    color: #fff;
}

.news-card-action-btn:active {
    transform: scale(0.98);
    filter: brightness(0.9);
}

.news-card-action-btn .btn-icon {
    margin-right: 1rem;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.news-card-action-btn .btn-text {
    flex: 1;
    text-align: center;
}

.news-card-action-btn .btn-arrow {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Button sprite positions from the assets sprite sheet */
.news-card-btn-download {
    background-position: -10px -10px;
}
.news-card-btn-vote {
    background-position: -514px -10px;
}
.news-card-btn-marketplace {
    background-position: -854px -10px;
}
.news-card-btn-shop {
    background-position: -1194px -10px;
    position: relative;
}

/* Shimmer effect on shop button */
.news-card-shimmer-wrap {
    position: relative;
}

.news-card-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 70px;
    background: linear-gradient(120deg, transparent 0%, transparent 47%, rgba(255, 255, 255, 0.22) 50%, transparent 53%, transparent 100%);
    background-size: 250% 250%;
    animation: shimmer-move 2.2s linear infinite;
    border-radius: 0.75rem;
    z-index: 2;
    filter: blur(0.5px) brightness(1.15);
    opacity: 0.7;
    pointer-events: none;
}

@keyframes shimmer-move {
    to {
        background-position: 120% 120%;
    }
}

/* No-posts fallback */
.news-cards-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    min-height: 332px;
    background-color: rgba(25, 22, 15, 0.6);
    border: 1px dashed rgba(197, 160, 89, 0.2);
    border-radius: 0.75rem;
    color: rgba(197, 160, 89, 0.4);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* Responsive */
@media (max-width: 1400px) {
    .news-cards-panel {
        flex-wrap: wrap;
        height: auto;
        justify-content: center;
    }
    .news-cards-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 991px) {
    .news-card-item {
        width: 100%;
        max-width: 400px;
        min-height: auto;
    }
    .news-card-img-wrap {
        height: 170px;
    }
    .news-cards-panel {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }
    .news-cards-actions {
        width: 100%;
        max-width: 400px;
    }
    .news-card-action-btn {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .news-cards-panel {
        border-radius: 1rem;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    .news-card-item {
        min-height: 200px;
    }
    .news-card-img-wrap {
        height: 150px;
    }
    .news-card-item .news-card-title {
        font-size: 0.95rem;
    }
    .news-card-action-btn {
        font-size: 0.9rem;
    }
}

/* ==========================================
   Stats Panel (Mirovia-style)
   ========================================== */
.mv-stats-panel {
    background-color: rgba(18, 16, 10, 0.95);
    background-image: url('/images/bg_statistics.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: soft-light;
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 2rem 2.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(197, 160, 89, 0.12);
    border-top: none;
}

.mv-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.mv-stat-item {
    background: url('/images/news-card-assets.png') no-repeat -1534px -10px;
    border-radius: 0.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.mv-stat-item:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.mv-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 70px;
    flex-shrink: 0;
}

.mv-stat-icon img {
    max-width: 36px;
    max-height: 36px;
    filter: brightness(0) invert(0.15) sepia(1) saturate(3) hue-rotate(340deg);
}

.mv-stat-info {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    margin-left: 0.75rem;
}

.mv-stat-label {
    font-size: 0.9rem;
    color: #572727;
    font-weight: 500;
}

.mv-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #c0392b;
}

@media (max-width: 991px) {
    .mv-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mv-stats-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .mv-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .mv-stats-panel {
        padding: 1rem;
        border-radius: 1rem;
    }
    .mv-stat-item {
        height: 60px;
    }
    .mv-stat-label {
        font-size: 0.8rem;
    }
    .mv-stat-value {
        font-size: 1rem;
    }
}

/* ==========================================
   My Account Panel (Mirovia-style)
   ========================================== */

/* Top Tabs Bar */
.mv-account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    background: #1a1714;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
    padding: 0.75rem 1rem 0;
}

.mv-account-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(230, 212, 168, 0.5);
    text-decoration: none;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: color 0.2s, background 0.2s;
    position: relative;
    cursor: pointer;
}

.mv-account-tab:hover {
    color: #e6d4a8;
    background: rgba(197, 160, 89, 0.08);
    text-decoration: none;
}

.mv-account-tab.active {
    color: #e6d4a8;
    background: rgba(197, 160, 89, 0.10);
    box-shadow: inset 0 -2px 0 #c5a059;
}

.mv-account-tab span {
    font-size: 0.8rem;
}

/* Main Panel */
.mv-account-panel {
    background: #1a1714;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
    position: relative;
}

.mv-account-header {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e6d4a8;
    border-bottom: 1px solid rgba(197, 160, 89, 0.12);
    background: rgba(197, 160, 89, 0.06);
}

.mv-account-diamond {
    width: 10px;
    height: 10px;
    background: #c5a059;
    transform: rotate(45deg);
    position: absolute;
    left: 50%;
    margin-left: -5px;
    top: 58px;
    z-index: 2;
}

.mv-account-body {
    padding: 1.5rem;
}

/* Rows */
.mv-account-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.65rem;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(197, 160, 89, 0.08);
    border-left: 3px solid rgba(197, 160, 89, 0.20);
    transition: background 0.2s, border-color 0.2s;
}

.mv-account-row:last-child {
    margin-bottom: 0;
}

.mv-account-row:hover {
    background: rgba(0, 0, 0, 0.35);
    border-left-color: #c5a059;
}

.mv-account-label {
    flex: 0 0 200px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(230, 212, 168, 0.7);
}

.mv-account-value {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #f0e6d0;
    letter-spacing: 0.3px;
}

.mv-account-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e6d4a8;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.20);
    border-radius: 0.4rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.mv-account-action:hover {
    background: rgba(197, 160, 89, 0.25);
    color: #fff;
    text-decoration: none;
}

/* Quick Actions Grid */
.mv-account-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.mv-account-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    background: #1a1714;
    border: 1px solid rgba(197, 160, 89, 0.10);
    border-radius: 0.75rem;
    color: rgba(230, 212, 168, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s ease;
}

.mv-account-action-card:hover {
    background: rgba(197, 160, 89, 0.08);
    color: #e6d4a8;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: rgba(197, 160, 89, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mv-account-action-card--admin {
    border-color: rgba(197, 160, 89, 0.25);
    color: #c5a059;
}

.mv-account-action-card--logout {
    color: rgba(192, 57, 43, 0.7);
}

.mv-account-action-card--logout:hover {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.25);
    background: rgba(231, 76, 60, 0.08);
}

/* Responsive */
@media (max-width: 991px) {
    .mv-account-tabs {
        gap: 0.25rem;
        padding: 0.5rem 0.5rem 0;
    }
    .mv-account-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    .mv-account-label {
        flex: 0 0 150px;
    }
    .mv-account-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .mv-account-tabs {
        flex-direction: column;
        gap: 0.15rem;
        border-radius: 0.75rem 0.75rem 0 0;
        padding: 0.5rem 0.5rem 0;
    }
    .mv-account-tab {
        border-radius: 0.4rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    .mv-account-tab.active {
        box-shadow: inset 3px 0 0 #c5a059;
    }
    .mv-account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .mv-account-label {
        flex: none;
    }
    .mv-account-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mv-account-body {
        padding: 1rem;
    }
    .mv-account-diamond {
        display: none;
    }
}

/* ==========================================
   Shop Coin Panel (Dark + Gold style)
   ========================================== */

.mv-shop-panel {
    background: #1a1714;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
}

.mv-shop-row {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.08);
    border-left: 3px solid rgba(197, 160, 89, 0.25);
    transition: background 0.2s, border-color 0.2s;
}

.mv-shop-row:last-child {
    border-bottom: none;
}

.mv-shop-row:hover {
    background: rgba(197, 160, 89, 0.04);
    border-left-color: #c5a059;
}

.mv-shop-coin-info {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.mv-shop-coin-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e6d4a8;
    line-height: 1.2;
}

.mv-shop-coin-label {
    font-size: 0.78rem;
    color: rgba(197, 160, 89, 0.45);
    letter-spacing: 0.3px;
}

.mv-shop-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #e6d4a8;
    border: 1.5px solid rgba(197, 160, 89, 0.35);
    border-radius: 0.35rem;
    background: rgba(197, 160, 89, 0.06);
    margin-left: 2rem;
    white-space: nowrap;
}

.mv-shop-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0.55rem 1.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1a1714;
    background: linear-gradient(180deg, #d4a94e 0%, #c5a059 50%, #b8923e 100%);
    border: none;
    border-radius: 0.35rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mv-shop-buy-btn:hover {
    background: linear-gradient(180deg, #e0b85a 0%, #d4a94e 50%, #c5a059 100%);
    color: #1a1714;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(197, 160, 89, 0.25);
}

@media (max-width: 768px) {
    .mv-shop-row {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }
    .mv-shop-coin-info {
        min-width: 120px;
    }
    .mv-shop-price {
        margin-left: 0;
    }
    .mv-shop-buy-btn {
        margin-left: 0;
        width: 100%;
    }
    .mv-shop-coin-amount {
        font-size: 1.3rem;
    }
}

/* ==========================================
   Checkout Page (Dark + Gold style)
   ========================================== */

.mv-checkout-package {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    gap: 2rem;
}

.mv-checkout-coin-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e6d4a8;
    line-height: 1.2;
}

.mv-checkout-coin-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(197, 160, 89, 0.45);
}

.mv-checkout-price {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #e6d4a8;
    border: 1.5px solid rgba(197, 160, 89, 0.35);
    border-radius: 0.35rem;
    background: rgba(197, 160, 89, 0.06);
}

.mv-checkout-input {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: #f0e6d0;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(197, 160, 89, 0.20);
    border-radius: 0.4rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mv-checkout-input::placeholder {
    color: rgba(197, 160, 89, 0.35);
}

.mv-checkout-input:focus {
    border-color: #c5a059;
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.12);
}

.mv-checkout-info {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 0.5rem;
    color: rgba(230, 212, 168, 0.7);
    font-size: 0.85rem;
}

.mv-checkout-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mv-checkout-warning {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(197, 160, 89, 0.06);
    border: 1px solid rgba(197, 160, 89, 0.18);
    border-radius: 0.5rem;
    color: rgba(230, 212, 168, 0.6);
    font-size: 0.82rem;
}

.mv-checkout-submit-btn {
    flex-shrink: 0;
    padding: 0.65rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #1a1714;
    background: linear-gradient(180deg, #d4a94e 0%, #c5a059 50%, #b8923e 100%);
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mv-checkout-submit-btn:hover {
    background: linear-gradient(180deg, #e0b85a 0%, #d4a94e 50%, #c5a059 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(197, 160, 89, 0.25);
}

.mv-checkout-submit-btn--paypal {
    background: linear-gradient(180deg, #0070ba 0%, #005ea6 100%);
    color: #fff;
}

.mv-checkout-submit-btn--paypal:hover {
    background: linear-gradient(180deg, #0082d9 0%, #0070ba 100%);
    box-shadow: 0 3px 10px rgba(0, 112, 186, 0.25);
}

@media (max-width: 576px) {
    .mv-checkout-actions {
        flex-direction: column;
    }
    .mv-checkout-warning {
        width: 100%;
    }
    .mv-checkout-submit-btn {
        width: 100%;
    }
    .mv-checkout-package {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* ==========================================
   Download Page (Dark + Gold style)
   ========================================== */

/* Section titles */
.mv-dl-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Montserrat', 'Nunito Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e6d4a8;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}
.mv-dl-section-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: .85;
}

/* Download cards grid */
.mv-dl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Individual download card */
.mv-dl-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(22, 18, 14, .75);
    border: 1px solid rgba(197, 160, 89, .18);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-decoration: none !important;
    transition: border-color .25s, background .25s, transform .15s;
}
.mv-dl-card:hover {
    border-color: rgba(197, 160, 89, .45);
    background: rgba(30, 24, 18, .85);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.mv-dl-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mv-dl-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mv-dl-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.mv-dl-card__name {
    font-family: 'Montserrat', 'Nunito Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e6d4a8;
    letter-spacing: 0.5px;
}
.mv-dl-card__status {
    font-size: 0.78rem;
    color: #c5a059;
    font-weight: 600;
}

.mv-dl-card__btn {
    flex-shrink: 0;
    font-family: 'Montserrat', 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e6d4a8;
    letter-spacing: 1px;
    padding: 0.45rem 1.25rem;
    border: 1px solid rgba(197, 160, 89, .4);
    border-radius: 4px;
    background: transparent;
    transition: background .2s, color .2s;
}
.mv-dl-card:hover .mv-dl-card__btn {
    background: rgba(197, 160, 89, .15);
    color: #fff;
}

/* ==========================================
   Patch Badge Styles (for patchnotes posts)
   ========================================== */
.patch-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-right: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.patch-badge-base { background: #555; }
.patch-badge-new { background: #FFC72D; color: #333; }
.patch-badge-changes { background: #49E6FF; color: #333; }
.patch-badge-bugfixes { background: #FF4A4A; }
.patch-badge-info { background: #7B68EE; }

.patch-section { margin: 20px 0 10px; }
.patch-section h2,
.patch-section h3 { margin-bottom: 15px; }

.patch-divider {
    border: none;
    border-top: 1px solid #495057;
    margin: 20px 0;
}

/* Requirements grid */
.mv-dl-req-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.mv-dl-req-table {
    background: rgba(22, 18, 14, .6);
    border: 1px solid rgba(197, 160, 89, .18);
    border-radius: 10px;
    overflow: hidden;
}

.mv-dl-req-header {
    font-family: 'Montserrat', 'Nunito Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #e6d4a8;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(197, 160, 89, .15);
}

.mv-dl-req-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.1rem;
    border-bottom: 1px solid rgba(197, 160, 89, .08);
    transition: background .15s;
}
.mv-dl-req-row:last-child {
    border-bottom: none;
}
.mv-dl-req-row:hover {
    background: rgba(197, 160, 89, .04);
}

.mv-dl-req-label {
    font-size: 0.85rem;
    color: rgba(232, 220, 196, .6);
}
.mv-dl-req-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e6d4a8;
    text-align: right;
}

/* Responsive */
@media (max-width: 767px) {
    .mv-dl-grid {
        grid-template-columns: 1fr;
    }
    .mv-dl-req-grid {
        grid-template-columns: 1fr;
    }
    .mv-dl-card__name {
        font-size: 0.92rem;
    }
    .mv-dl-req-label,
    .mv-dl-req-value {
        font-size: 0.8rem;
    }
}

/* ==========================================
   Auth Pages – Register & Login (Dark + Gold)
   ========================================== */

.mv-auth-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Montserrat', 'Nunito Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e6d4a8;
    letter-spacing: 1px;
    margin-bottom: 0;
    padding: 1rem 1.5rem;
    background: rgba(197, 160, 89, 0.06);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
}
.mv-auth-header-icon {
    color: #c5a059;
    font-size: 1.1rem;
}

.mv-auth-panel {
    background: #1a1714;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 0 0 1rem 1rem;
    padding: 1.75rem 1.5rem;
}

.mv-auth-field {
    margin-bottom: 1.1rem;
}

.mv-auth-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(232, 220, 196, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.mv-auth-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(22, 18, 14, .85);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    transition: border-color .25s;
}
.mv-auth-input-wrap:focus-within {
    border-color: rgba(197, 160, 89, 0.5);
}

.mv-auth-input-icon {
    padding: 0 0 0 1rem;
    color: #c5a059;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.mv-auth-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #e6d4a8 !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
}
.mv-auth-input::placeholder {
    color: rgba(232, 220, 196, 0.35);
}
.mv-auth-input:-webkit-autofill,
.mv-auth-input:-webkit-autofill:hover,
.mv-auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #e6d4a8;
    -webkit-box-shadow: 0 0 0 1000px #1a1714 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.mv-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(232, 220, 196, 0.7);
}
.mv-auth-check input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #c5a059;
}

.mv-auth-forgot {
    text-align: right;
    margin-bottom: 1.25rem;
}

.mv-auth-link {
    color: #c5a059 !important;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}
.mv-auth-link:hover {
    color: #e6d4a8 !important;
    text-decoration: underline;
}

.mv-auth-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    font-family: 'Montserrat', 'Nunito Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1a1714;
    background: linear-gradient(135deg, #c5a059, #e6d4a8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    margin-top: 0.5rem;
}
.mv-auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.mv-auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mv-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    font-size: 0.88rem;
    color: rgba(232, 220, 196, 0.6);
}

@media (max-width: 575px) {
    .mv-auth-panel {
        padding: 1.25rem 1rem;
    }
    .mv-auth-header {
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }
}

/* Auth tabs (forgot page) */
.mv-auth-tabs {
    display: flex;
    gap: 0.5rem;
}
.mv-auth-tab {
    flex: 1;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(232, 220, 196, 0.6);
    background: rgba(22, 18, 14, .7);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
}
.mv-auth-tab:hover {
    color: #e6d4a8;
    border-color: rgba(197, 160, 89, 0.3);
}
.mv-auth-tab.active {
    color: #e6d4a8;
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.4);
}
.mv-auth-tab-content {
    display: none;
}
.mv-auth-tab-content.active {
    display: block;
}
