/**
 * assets/css/core/_layout.css
 * DropX Prime System - Rendszerkeret, Rácsok, Kártyák, Gombok és Szélesített Távolságok
 *
 * Tartalom:
 * 1. Háttér canvas és globális konténer (.app-container, #bg-canvas)
 * 2. HUD cyberpunk sarkok és fénylő elválasztók
 * 3. Rendszerszintű gombok (.btn, .btn-icon)
 * 4. Grid elrendezések és univerzális kártyák (.card, .stat-card)
 * 5. Hero szekció és statisztikai dobozok
 * 6. Partnerek rács és modális réteg
 * 7. Reszponzív töréspontok és mobil applikációs optimalizálás
 *
 * JAVÍTÁSOK (V11.0):
 * - Konténer szélessége +5%-kal megnövelve 1550px-re (width: 95%) a tökéletesen kiegyensúlyozott asztali nézetért.
 * - Felső távolság 8px-re rögzítve.
 * - Szigorúan 0 db szabályt tartalmaz a 0. szabályzatnak megfelelően.
 */

/* ==========================================================================
   1. HÁTTÉR CANVAS ÉS FŐ KONTÉNER (1550PX MAX SZÉLESSÉG, 95% WIDTH)
   ========================================================================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

.app-container {
    position: relative;
    z-index: 2;
    background: var(--color-glass-main);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 1550px; /* +5%-kal növelt, ideális arányú szélesség */
    margin: 8px auto 25px auto; /* 8px elegáns felső hézag */
    border-radius: 4px;
    border: 1px solid var(--color-border-subtle);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.95),
        0 0 40px rgba(229, 158, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    min-height: calc(100vh - 35px);
    overflow: visible;
}

body.light-mode .app-container {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(179, 107, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   2. HUD CYBERPUNK SARKOK ÉS ELVÁLASZTÓK
   ========================================================================== */
.hud-brackets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: inherit;
    z-index: 5;
    overflow: visible;
}

.hud-brackets::before,
.hud-brackets::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    border: 2px solid var(--color-gold);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.hud-brackets::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.hud-brackets::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.glow-divider {
    height: 2px;
    width: 100%;
    margin: 40px 0;
    background: linear-gradient(
        90deg, 
        transparent, 
        var(--color-border-gold), 
        var(--color-gold), 
        var(--color-border-gold), 
        transparent
    );
    box-shadow: 0 0 15px var(--color-gold-glow);
    opacity: 0.8;
}

/* ==========================================================================
   3. GOMBOK (CYBER GOMBOK ÉS IKON GOMBOK)
   ========================================================================== */
body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(229, 158, 0, 0.12), rgba(0, 0, 0, 0.45));
    backdrop-filter: blur(5px);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5), 
        inset 0 0 10px rgba(229, 158, 0, 0.1);
    overflow: hidden;
}

body.light-mode .btn {
    background: linear-gradient(135deg, rgba(179, 107, 0, 0.08), rgba(248, 245, 240, 0.8));
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05), 
        inset 0 0 10px rgba(179, 107, 0, 0.05);
}

body .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

body.light-mode .btn::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

body .btn:hover::before {
    left: 150%;
}

body .btn:hover {
    background: rgba(229, 158, 0, 0.25);
    color: #ffffff;
    box-shadow: 
        0 0 25px var(--color-gold-glow), 
        inset 0 0 15px var(--color-gold-glow);
    transform: translateY(-2px);
    border-color: #ffb81c;
}

body.light-mode .btn:hover {
    background: rgba(179, 107, 0, 0.15);
    box-shadow: 
        0 5px 20px rgba(179, 107, 0, 0.2), 
        inset 0 0 10px rgba(179, 107, 0, 0.1);
    color: #000000;
}

.btn-icon {
    background: rgba(229, 158, 0, 0.1);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 4px;
    padding: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: inset 0 0 5px rgba(229, 158, 0, 0.1);
}

.btn-icon:hover {
    background: rgba(229, 158, 0, 0.25);
    box-shadow: 0 0 15px var(--color-gold-glow);
    color: #ffffff;
}

body.light-mode .btn-icon {
    background: rgba(179, 107, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.light-mode .btn-icon:hover {
    background: rgba(179, 107, 0, 0.2);
    color: #000000;
}

/* ==========================================================================
   4. RÁCSOK ÉS KÁRTYÁK
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
}

.grid-7 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 12px;
}

.card {
    background: var(--color-glass-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-subtle);
    border-top: 3px solid var(--color-gold);
    border-radius: 4px;
    color: var(--text-light);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        inset 0 -20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 215px;
    padding: 0;
}

body.light-mode .card {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -20px 40px rgba(0, 0, 0, 0.015);
}

.card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent, rgba(229, 158, 0, 0.2), transparent);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.card:hover {
    border-color: var(--color-border-gold);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.95),
        inset 0 0 30px rgba(229, 158, 0, 0.1);
    transform: translateY(-4px);
}

body.light-mode .card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
}

.card:hover::before {
    top: 100%;
    opacity: 1;
    transition: top 0.8s ease-in-out;
}

.card-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.card:hover .card-background-image {
    opacity: 0.5;
}

.card-overlay-text-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(0, 0, 0, 0.55) 70%, 
        transparent 100%
    );
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    text-align: left;
}

body.light-mode .card-overlay-text-content {
    background: linear-gradient(
        to top, 
        rgba(238, 234, 227, 0.92) 0%, 
        rgba(238, 234, 227, 0.7) 70%, 
        transparent 100%
    );
}

.card-overlay-text-content h3 {
    margin-bottom: 6px;
    font-size: 1.4rem;
    color: var(--color-gold);
    text-shadow: 0 2px 10px rgba(229, 158, 0, 0.4);
}

.card-overlay-text-content p {
    margin-bottom: 12px;
    font-size: 0.98rem;
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

body.light-mode .card-overlay-text-content p {
    color: var(--text-light);
    text-shadow: none;
}

/* ==========================================================================
   5. HERO SZEKCIÓ ÉS STATISZTIKAI DOBOZOK
   ========================================================================== */
.hero-advanced {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border-gold);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.9),
        inset 0 0 30px rgba(229, 158, 0, 0.15);
    margin-bottom: 25px;
    min-height: 400px;
}

body.light-mode .hero-advanced {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 30px rgba(179, 107, 0, 0.08);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 15, 10, 0.4) 100%);
    z-index: 1;
    mix-blend-mode: overlay;
}

body.light-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(248, 245, 240, 0.85) 0%, rgba(220, 210, 195, 0.7) 100%);
    mix-blend-mode: normal;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

body.light-mode .hero-overlay-dark {
    background: rgba(255, 255, 255, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    padding: 25px;
}

.hero-top {
    text-align: center;
    margin-bottom: 25px;
}

.hero-top h1 {
    border: none;
    font-size: 2.8rem;
    margin: 0;
    padding: 0;
    color: var(--text-light);
    letter-spacing: 3px;
}

body.light-mode .hero-top h1 {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.hero-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    flex: 1;
}

.hero-mid-left {
    flex: 1;
    max-width: 580px;
    background: rgba(0, 0, 0, 0.4);
    padding: 18px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-border-subtle);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

body.light-mode .hero-mid-left {
    background: rgba(248, 245, 240, 0.75);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(100, 90, 80, 0.1);
}

.hero-mid-left p {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 500;
    text-shadow: 0 2px 5px #000000;
    line-height: 1.7;
    margin-bottom: 0;
}

body.light-mode .hero-mid-left p {
    color: #2c2825;
    text-shadow: none;
    font-weight: 600;
}

.hero-mid-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-stats-box {
    background: rgba(15, 12, 10, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-border-gold);
    padding: 18px;
    border-radius: 4px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(229, 158, 0, 0.1);
    position: relative;
}

body.light-mode .hero-stats-box {
    background: rgba(248, 245, 240, 0.9);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(179, 107, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

body.light-mode .stat-item {
    border-bottom: 1px solid rgba(100, 90, 80, 0.1);
}

.stat-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-silver);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.65rem;
    color: var(--color-gold);
    font-weight: 700;
    text-shadow: 0 0 15px var(--color-gold-glow);
}

.hero-bot {
    text-align: center;
    margin-top: 25px;
}

.typewriter-text {
    color: var(--color-gold);
    font-weight: 800;
    font-size: 1.25rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 22px;
    border-radius: 4px;
    border: 1px solid var(--color-border-gold);
    text-shadow: 0 0 12px var(--color-gold-glow);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.7),
        inset 0 0 10px rgba(229, 158, 0, 0.2);
    display: inline-block;
    min-height: 46px;
    position: relative;
}

body.light-mode .typewriter-text {
    background: rgba(248, 245, 240, 0.95);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 0 10px rgba(179, 107, 0, 1);
}

.stat-card {
    text-align: center;
    padding: 18px 12px;
    background: rgba(15, 12, 10, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    border-bottom: 3px solid var(--color-gold);
    border-top: 1px solid var(--color-border-subtle);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s;
    position: relative;
}

body.light-mode .stat-card {
    background: rgba(248, 245, 240, 0.85);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 0 15px rgba(0, 0, 0, 0.01);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(229, 158, 0, 0.08);
}

body.light-mode .stat-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-card .value {
    font-size: 2rem;
    color: var(--color-gold);
    margin: 8px 0;
    text-shadow: 0 0 15px var(--color-gold-glow);
    font-weight: 700;
}

.stat-card .label {
    font-size: 0.88rem;
    color: var(--color-silver);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   6. PARTNEREK RÁCS ÉS MODÁLIS RÉTEG
   ========================================================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
    justify-items: center;
}

@media (min-width: 1025px) {
    .partners-grid {
        grid-template-columns: repeat(7, minmax(115px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    }
}

.partners-card-item {
    background: var(--color-glass-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-border-subtle);
    border-top: 3px solid var(--color-gold);
    border-radius: 4px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 185px;
    justify-content: space-between;
    width: 100%;
}

body.light-mode .partners-card-item {
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

.partners-card-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-gold);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.7),
        inset 0 0 15px rgba(229, 158, 0, 0.1);
}

body.light-mode .partners-card-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.partners-card-item .logo-wrapper {
    margin-bottom: 6px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
}

.partners-card-item img.partner-logo {
    max-width: 100%;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.8) grayscale(100%);
    transition: filter 0.3s ease;
}

.partners-card-item:hover img.partner-logo {
    filter: brightness(1) grayscale(0%);
}

.partners-card-item h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--color-gold);
    text-shadow: 0 0 8px var(--color-gold-glow);
    flex-grow: 0;
}

.partners-card-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.45;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.partners-card-item .btn {
    padding: 7px 14px;
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-top: auto;
}

/* Modális ablak háttérfedése */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-overlay.active {
    z-index: 2147483647;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================================================
   7. ANIMÁCIÓK ÉS RESZPONZÍV TÖRÉSPONTOK
   ========================================================================== */
.content-section {
    display: none;
    padding: 22px;
    animation: fadeIn 0.4s ease forwards;
    position: relative;
}

.content-section.active {
    display: block;
}

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

.highlight-pulse {
    animation: sectionPulse 1.5s ease-out;
}

@keyframes sectionPulse {
    0% {
        box-shadow: inset 0 0 0 transparent;
    }
    50% {
        box-shadow: inset 0 0 60px var(--color-gold-glow);
        background: rgba(229, 158, 0, 0.08);
    }
    100% {
        box-shadow: inset 0 0 0 transparent;
        background: transparent;
    }
}

.landing-sub-section {
    padding: 40px 18px;
    border-radius: 4px;
    transition: all 0.4s ease;
    position: relative;
}

@media (max-width: 1200px) {
    .app-container {
        width: 96%;
        max-width: 100%;
        margin: 8px auto;
    }
}

@media (max-width: 1024px) {
    .hero-mid {
        flex-direction: column;
        text-align: center;
    }

    .hero-mid-right {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    .hero-stats-box {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hud-brackets {
        display: none;
    }

    html body .app-container {
        width: 100%;
        margin: 0;
        padding-top: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        min-height: calc(100vh - var(--app-nav-height-mobile));
        padding-bottom: calc(var(--app-nav-height-mobile) + 15px);
    }

    .content-section {
        padding: 15px 10px;
    }

    h1 {
        font-size: 1.35rem;
        margin-bottom: 12px;
        border-width: 1px;
    }

    h2 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    h3 {
        font-size: 0.95rem;
    }

    p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .hero-advanced {
        min-height: 300px;
        margin-bottom: 15px;
    }

    .hero-content {
        padding: 15px;
        min-height: 300px;
        justify-content: center;
    }

    .hero-top h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero-mid-left {
        padding: 12px;
    }

    .hero-mid-left p {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .typewriter-text {
        font-size: 0.85rem;
        padding: 8px 15px;
        min-height: auto;
    }

    body .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .grid-3,
    .grid-5,
    .grid-7 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .card {
        min-height: 110px;
        margin-bottom: 0;
        border-width: 1px;
        border-top-width: 2px;
    }

    .card-overlay-text-content {
        padding: 8px 5px;
        background: linear-gradient(
            to top, 
            rgba(0, 0, 0, 0.95) 0%, 
            rgba(0, 0, 0, 0.6) 80%, 
            transparent 100%
        );
    }

    body.light-mode .card-overlay-text-content {
        background: linear-gradient(
            to top, 
            rgba(238, 234, 227, 0.95) 0%, 
            rgba(238, 234, 227, 0.7) 80%, 
            transparent 100%
        );
    }

    .card-overlay-text-content h3 {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }

    .card-overlay-text-content p {
        font-size: 0.62rem;
        margin-bottom: 5px;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    .card body .btn {
        padding: 4px 6px;
        font-size: 0.55rem;
        margin-top: 0;
    }

    .partners-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .partners-card-item {
        min-height: 120px;
        padding: 5px;
        border-width: 1px;
        border-top-width: 2px;
    }

    .partners-card-item .logo-wrapper {
        height: 35px;
        margin-bottom: 5px;
    }

    .partners-card-item img.partner-logo {
        max-height: 35px;
    }

    .partners-card-item h3 {
        font-size: 0.72rem;
        margin-bottom: 2px;
    }

    .partners-card-item p {
        font-size: 0.6rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        margin-bottom: 5px;
    }

    .partners-card-item body .btn {
        padding: 3px 5px;
        font-size: 0.55rem;
        width: 100%;
    }
}

/* ==========================================================================
   PREMIUM SHELL / SURFACES
   ========================================================================== */
.app-container {
    width: min(95%, 1550px);
    margin: 10px auto 28px;
    border-radius: var(--dx-radius-xl);
    border: 1px solid var(--dx-line);
    background: linear-gradient(180deg, rgba(11,13,16,.95), rgba(7,9,11,.98));
    box-shadow:
        0 36px 100px rgba(0,0,0,.72),
        0 0 0 1px rgba(255,255,255,.018),
        inset 0 1px 0 rgba(255,255,255,.045);
}

body.light-mode .app-container {
    background: rgba(245,247,248,.94);
    border-color: var(--dx-line);
    box-shadow: 0 24px 70px rgba(35,45,55,.12), inset 0 1px 0 rgba(255,255,255,.9);
}

.card,
.official-blog-sidebar-box,
.home-sidebar-groups-box,
.profile-section-card,
.settings-card,
.settings-menu,
.groups-hub-hero,
.post-publisher-card,
.post-card {
    border-radius: var(--dx-radius-lg);
    border-color: var(--dx-line);
    background: linear-gradient(180deg, rgba(19,22,27,.95), rgba(11,14,17,.98));
    box-shadow: var(--dx-shadow-card);
}

.card:hover,
.profile-section-card:hover,
.settings-card:hover,
.post-card:hover {
    border-color: var(--dx-line-focus);
    box-shadow: var(--dx-shadow-hover);
}

.card h1, .card h2, .card h3, .card h4,
.profile-section-card h1, .profile-section-card h2, .profile-section-card h3,
.settings-card h1, .settings-card h2, .settings-card h3 {
    color: var(--dx-silver-hi);
}

.post-card {
    border-left: 2px solid rgba(191,198,206,.30);
}

.post-card:hover {
    border-left-color: var(--dx-gold);
}

body.light-mode .card,
body.light-mode .official-blog-sidebar-box,
body.light-mode .home-sidebar-groups-box,
body.light-mode .profile-section-card,
body.light-mode .settings-card,
body.light-mode .settings-menu,
body.light-mode .groups-hub-hero,
body.light-mode .post-publisher-card,
body.light-mode .post-card {
    background: linear-gradient(180deg, #fbfcfd, #edf1f3);
    color: var(--dx-silver-hi);
    border-color: var(--dx-line);
    box-shadow: 0 14px 34px rgba(39,48,57,.10), inset 0 1px 0 rgba(255,255,255,.92);
}

body.light-mode .card h1,
body.light-mode .card h2,
body.light-mode .card h3,
body.light-mode .card h4,
body.light-mode .profile-section-card h1,
body.light-mode .profile-section-card h2,
body.light-mode .profile-section-card h3,
body.light-mode .settings-card h1,
body.light-mode .settings-card h2,
body.light-mode .settings-card h3,
body.light-mode .post-card h1,
body.light-mode .post-card h2,
body.light-mode .post-card h3,
body.light-mode .post-card h4 {
    color: var(--dx-silver-hi);
}

body.light-mode .post-card {
    border-left-color: rgba(92,104,115,.28);
}

body.light-mode .post-card:hover {
    border-left-color: var(--dx-gold);
}

body .btn {
    border-radius: var(--dx-radius-md);
    border-color: rgba(214,165,43,.66);
    background: linear-gradient(135deg, rgba(214,165,43,.14), rgba(191,198,206,.035) 52%, rgba(0,0,0,.30));
    color: var(--dx-gold-hi);
    box-shadow: 0 8px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
    font-weight: 500;
    letter-spacing: .75px;
}

body .btn:hover {
    transform: translateY(-1px);
    border-color: var(--dx-gold-hi);
    box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 22px var(--dx-gold-glow);
}

body.light-mode .btn {
    background: linear-gradient(135deg, rgba(168,117,18,.10), rgba(255,255,255,.82));
    color: #8c610d;
    border-color: rgba(168,117,18,.45);
    box-shadow: 0 6px 18px rgba(45,55,65,.08);
}

body.light-mode .btn:hover {
    background: rgba(168,117,18,.12);
    color: #6f4d09;
}

body .btn-icon {
    border-radius: var(--dx-radius-md);
    border-color: var(--dx-line);
    background: rgba(191,198,206,.045);
    color: var(--dx-silver);
}

body .btn-icon:hover {
    border-color: var(--dx-line-focus);
    color: var(--dx-gold-hi);
    box-shadow: 0 0 16px var(--dx-gold-glow);
}

body.light-mode .btn-icon {
    background: #f7f9fa;
    color: #59636d;
    border-color: var(--dx-line);
}

body.light-mode .btn-icon:hover {
    color: var(--dx-gold);
    background: #fff;
}

body.light-mode table {
    color: var(--dx-silver-hi);
}

body.light-mode th {
    background: #e5eaed;
    color: var(--dx-gold);
}


/* ==========================================================================
   DROPX GLOBAL FLASH - bejelentkezési és műveleti visszajelzések
   ========================================================================== */
.dx-global-flash-stack {
    position: fixed;
    top: 76px;
    right: 18px;
    z-index: 5000;
    width: min(420px, calc(100vw - 36px));
    pointer-events: none;
}

.dx-global-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(0,0,0,.35);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.35;
    animation: dxFlashIn .24s ease-out;
}

.dx-global-flash-success {
    color: #54e5a3;
    background: rgba(7, 50, 34, .92);
    border: 1px solid rgba(16,185,129,.48);
}

.dx-global-flash-error {
    color: #ff8d8d;
    background: rgba(65, 12, 18, .94);
    border: 1px solid rgba(239,68,68,.5);
}

@keyframes dxFlashIn {
    from { opacity: 0; transform: translate3d(20px,-8px,0); }
    to { opacity: 1; transform: translate3d(0,0,0); }
}

@media (max-width: 600px) {
    .dx-global-flash-stack {
        top: 66px;
        right: 10px;
        width: calc(100vw - 20px);
    }

    .dx-global-flash {
        border-radius: 14px;
        padding: 12px 13px;
    }
}
