/* ==========================================================================
   Homepage - Modern Redesign 2025
   Clean, spacious design with subtle shadows
   ========================================================================== */

/* CSS Variables */
:root {
    --hp-primary: #21749a;
    --hp-primary-hover: #1a5f7f;
    --hp-secondary: #cb2f79;
    --hp-secondary-hover: #a8265f;
    --hp-bg: #f5f7fa;
    --hp-card-bg: #ffffff;
    --hp-text: #1f2937;
    --hp-text-light: #6b7280;
    --hp-border: #e5e7eb;
    --hp-border-light: #f3f4f6;
    --hp-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --hp-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --hp-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --hp-shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --hp-radius: 12px;
    --hp-radius-sm: 8px;
    --hp-space-xs: 6px;
    --hp-space-sm: 10px;
    --hp-space-md: 15px;
    --hp-space-lg: 20px;
    --hp-space-xl: 25px;
}

/* Base container override */
.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--hp-space-md);
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.hp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--hp-space-sm);
    padding: var(--hp-space-sm) 0;
    margin-bottom: var(--hp-space-sm);
}

.hp-header h1 {
    font-size: 23px;
    font-weight: 700;
    color: var(--hp-text);
    margin: 0;
    letter-spacing: -0.5px;
}

.hp-header h1 i {
    color: var(--hp-primary);
    margin-right: 12px;
}

.hp-fb-support {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    font-size: 15px;
    color: var(--hp-text-light);
    box-shadow: var(--hp-shadow-sm);
}

.hp-fb-support strong {
    color: var(--hp-text);
}

/* ==========================================================================
   Mobile App Banner - Modern CTA
   ========================================================================== */

.hp-app-banner {
    background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-secondary) 100%);
    border-radius: var(--hp-radius);
    padding: var(--hp-space-sm) var(--hp-space-md);
    margin-bottom: var(--hp-space-md);
    box-shadow: var(--hp-shadow);
    position: relative;
    overflow: hidden;
}

.hp-app-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.hp-app-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--hp-space-md);
    position: relative;
    z-index: 1;
}

.hp-app-banner-text h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.hp-app-banner-text h3 i {
    margin-right: 8px;
    opacity: 0.9;
}

.hp-app-banner-text p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
}

.hp-app-banner .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #22c55e;
    padding: 8px 16px;
    border-radius: var(--hp-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--hp-shadow);
    transition: all 0.2s ease;
}

.hp-app-banner .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-lg);
    color: #16a34a;
    text-decoration: none;
}

.hp-app-banner .btn-download i {
    font-size: 17px;
}

/* ==========================================================================
   Profile Sections - Clean Cards
   ========================================================================== */

.hp-profiles-section {
    margin-bottom: var(--hp-space-md);
}

.hp-profiles-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--hp-text);
    margin: 0 0 var(--hp-space-xs) 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-profiles-section h3 i {
    color: var(--hp-secondary);
    font-size: 17px;
}

.hp-profiles-section .mainPage {
    background: var(--hp-card-bg);
    border-radius: var(--hp-radius);
    padding: var(--hp-space-sm);
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
}

.hp-profiles-section .splide__slide {
    padding: 4px;
}

.hp-profiles-section .fotoWrap {
    border-radius: var(--hp-radius-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-profiles-section .fotoWrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-md);
}

.hp-profiles-section .img-mainpage {
    border-radius: var(--hp-radius-sm);
    border: 2px solid var(--hp-border);
}

.hp-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--hp-space-xs);
    padding: 8px 14px;
    border-radius: var(--hp-radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hp-btn-more:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   Main Content Sections
   ========================================================================== */

.hp-main-grid {
    margin-bottom: var(--hp-space-lg);
}

/* ==========================================================================
   Modern Card Component
   ========================================================================== */

.hp-card {
    background: var(--hp-card-bg);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.hp-card:hover {
    box-shadow: var(--hp-shadow-md);
}

/* Card Tabs */
.hp-card .nav,
.hp-card .nav.nav-tabs,
.hp-main-content .hp-card .nav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.hp-card .nav-tabs {
    display: flex;
    background: linear-gradient(180deg, #e8f4f8 0%, #dbeef5 100%);
    border: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid var(--hp-border);
}

.hp-card .nav-tabs > li {
    flex: 1;
    margin: 0;
}

.hp-card .nav-tabs > li > a {
    display: block;
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-text);
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    transition: all 0.2s ease;
}

.hp-card .nav-tabs > li > a:hover {
    color: var(--hp-primary);
    background: rgba(255,255,255,0.7);
}

.hp-card .nav-tabs > li.active > a,
.hp-card .nav-tabs > li.active > a:hover,
.hp-card .nav-tabs > li.active > a:focus {
    color: var(--hp-primary);
    background: var(--hp-card-bg);
    border: none;
    border-bottom: 3px solid var(--hp-primary);
    font-weight: 700;
}

/* Card Content */
.hp-card .tab-content {
    padding: var(--hp-space-sm);
}

/* Fixed height for main content cards */
.hp-main-content .hp-user-card {
    height: 520px;
    display: flex;
    flex-direction: column;
}

.hp-main-content .hp-user-card .hp-card-body {
    flex: 1;
    overflow-y: auto;
}

.hp-main-content .col-md-8 > .hp-card {
    height: 520px;
    display: flex;
    flex-direction: column;
}

.hp-main-content .hp-card .tab-content {
    flex: 1;
    overflow-y: auto;
}

/* Card Tables */
.hp-card table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.hp-card table td {
    padding: 8px 10px;
    font-size: 14px;
    color: var(--hp-text);
    border-bottom: 1px solid var(--hp-border-light);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Column widths - unified for all tables */
.hp-card table td:first-child {
    width: 120px;
}

.hp-card table td:nth-child(2) {
    width: 65%;
}

.hp-card table td:nth-child(3) {
    width: auto;
}

.hp-card table td:last-child:nth-child(4) {
    text-align: center;
}

.hp-card table thead th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hp-text-light);
    background: var(--hp-border-light);
    padding: 10px;
}

.hp-card table tr:last-child td {
    border-bottom: none;
}

.hp-card table tr:hover td {
    background: rgba(33, 116, 154, 0.03);
}

.hp-card table a {
    color: var(--hp-primary);
    text-decoration: none;
    font-weight: 500;
}

.hp-card table a:hover {
    color: var(--hp-primary-hover);
    text-decoration: underline;
}

.hp-card table .label {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Card Footer */
.hp-card-footer {
    padding: var(--hp-space-sm);
    border-top: 1px solid var(--hp-border-light);
    background: var(--hp-border-light);
}

/* ==========================================================================
   Login Card - Horizontal Layout
   ========================================================================== */

.hp-login-card {
    background: var(--hp-card-bg);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
    padding: var(--hp-space-md) var(--hp-space-lg);
    margin-bottom: var(--hp-space-lg);
}

.hp-login-card h2 {
    font-size: 21px;
    font-weight: 600;
    color: var(--hp-text);
    margin: 0 0 var(--hp-space-sm) 0;
    text-align: center;
}

.hp-login-card h2 i {
    color: var(--hp-primary);
    margin-right: 10px;
}

.hp-login-card label {
    font-size: 15px;
    font-weight: 500;
    color: var(--hp-text);
    margin-bottom: 4px;
}

.hp-login-card .form-control {
    height: 40px;
    font-size: 15px;
    border: 1px solid var(--hp-border);
    border-radius: 6px;
    background: var(--hp-card-bg);
    color: var(--hp-text);
    transition: all 0.2s ease;
}

.hp-login-card .form-control:focus {
    outline: none;
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 3px rgba(33, 116, 154, 0.1);
}

.hp-login-card .form-group {
    margin-bottom: 0;
}

.hp-login-card hr {
    border: none;
    border-top: 1px solid var(--hp-border);
    margin: var(--hp-space-sm) 0;
}

/* Social Login Buttons */
.hp-social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hp-social-buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    transition: all 0.2s ease;
    box-shadow: var(--hp-shadow-sm);
}

.hp-social-buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-md);
}

/* ==========================================================================
   User Card (Login / My Panel) - Prominent Design
   ========================================================================== */

.hp-user-card {
    background: var(--hp-card-bg);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow-md);
    border: 2px solid var(--hp-primary);
    overflow: hidden;
}

.hp-user-card .hp-card-header {
    padding: 14px var(--hp-space-md);
    background: linear-gradient(135deg, var(--hp-primary) 0%, #2d8bb8 100%);
    border-bottom: none;
}

.hp-user-card .hp-card-header h2 {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hp-user-card .hp-card-header h2 i {
    color: #fff;
    font-size: 23px;
}

.hp-user-card .hp-card-body {
    padding: var(--hp-space-md);
}

.hp-user-card .form-group {
    margin-bottom: var(--hp-space-sm);
}

.hp-user-card .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-user-card .form-control {
    width: 100%;
    height: 44px;
    font-size: 16px;
    border: 2px solid var(--hp-border);
    border-radius: 8px;
    background: var(--hp-card-bg);
    color: var(--hp-text);
    padding: 10px 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.hp-user-card .form-control:focus {
    outline: none;
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 4px rgba(33, 116, 154, 0.15);
}

.hp-user-card .form-control::placeholder {
    color: var(--hp-text-light);
}

.hp-user-card label {
    font-size: 14px;
    font-weight: 500;
    color: var(--hp-text);
    margin-bottom: 4px;
}

.hp-user-card hr {
    border: none;
    border-top: 1px solid var(--hp-border);
    margin: var(--hp-space-sm) 0;
}

/* Login button - make it prominent */
.hp-user-card .btn-info.btn-block {
    height: 48px;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--hp-primary) 0%, #2d8bb8 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(33, 116, 154, 0.3);
    transition: all 0.2s ease;
}

.hp-user-card .btn-info.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 116, 154, 0.4);
}

/* Remember me checkbox */
.hp-user-card .form-group label[title] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.hp-user-card .form-group label[title] input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--hp-primary);
}

/* Links at bottom */
.hp-user-card .text-center a {
    color: var(--hp-primary);
    font-weight: 500;
    text-decoration: none;
}

.hp-user-card .text-center a:hover {
    text-decoration: underline;
}

/* Social Login Buttons */
.hp-social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hp-social-buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    transition: all 0.2s ease;
    box-shadow: var(--hp-shadow-sm);
}

.hp-social-buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-md);
}

/* ==========================================================================
   My Panel (logged in state)
   ========================================================================== */

.hp-my-panel h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-text);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-my-panel h5 i {
    color: var(--hp-primary);
    font-size: 15px;
}

/* Quick Links */
.hp-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: var(--hp-space-sm);
}

.hp-quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--hp-border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--hp-text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hp-quick-link:hover {
    background: var(--hp-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hp-quick-link i {
    font-size: 15px;
    color: var(--hp-primary);
    width: 18px;
    text-align: center;
}

.hp-quick-link:hover i {
    color: #fff;
}

/* Panel Help Text */
.hp-panel-help {
    margin-top: var(--hp-space-sm);
    padding: 10px;
    background: var(--hp-border-light);
    border-radius: 8px;
    text-align: center;
}

.hp-panel-help small {
    color: var(--hp-text-light);
    font-size: 13px;
}

.hp-panel-help i {
    color: var(--hp-primary);
    margin-right: 4px;
}

/* ==========================================================================
   Stats Card
   ========================================================================== */

.hp-stats-card {
    background: var(--hp-card-bg);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
    overflow: hidden;
}

.hp-stats-card .hp-card-header {
    padding: var(--hp-space-xs) var(--hp-space-sm);
    background: var(--hp-border-light);
    border-bottom: 1px solid var(--hp-border);
}

.hp-stats-card .hp-card-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-stats-card .hp-card-header h2 i {
    color: var(--hp-primary);
    font-size: 15px;
}

.hp-stats-card .hp-card-body {
    padding: var(--hp-space-sm);
}

/* Stats List */
.hp-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hp-stats-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--hp-text);
    border-bottom: 1px solid var(--hp-border-light);
}

.hp-stats-list li:last-child {
    border-bottom: none;
}

.hp-stats-list li i {
    width: 18px;
    text-align: center;
    color: var(--hp-primary);
    font-size: 15px;
}

.hp-stats-list li strong {
    margin-left: auto;
    font-size: 14px;
    color: var(--hp-primary);
    font-weight: 700;
}

/* ==========================================================================
   News Card
   ========================================================================== */

.hp-news-card {
    background: var(--hp-card-bg);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
    overflow: hidden;
}

.hp-news-card .hp-card-header {
    padding: var(--hp-space-xs) var(--hp-space-sm);
    background: var(--hp-border-light);
    border-bottom: 1px solid var(--hp-border);
}

.hp-news-card .hp-card-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-news-card .hp-card-header h2 i {
    color: var(--hp-secondary);
    font-size: 15px;
}

.hp-news-card .hp-card-body {
    padding: var(--hp-space-sm);
    font-size: 14px;
    line-height: 1.6;
    color: var(--hp-text);
}

.hp-news-card hr {
    border: none;
    border-top: 1px solid var(--hp-border-light);
    margin: 8px 0;
}

.hp-news-card a {
    color: var(--hp-primary);
    font-weight: 500;
}

.hp-news-card a:hover {
    color: var(--hp-primary-hover);
}

/* ==========================================================================
   Footer Stats - Clean Bar
   ========================================================================== */

.hp-footer-stats {
    background: linear-gradient(135deg, var(--hp-primary) 0%, #3b82f6 50%, var(--hp-secondary) 100%);
    color: #fff;
    padding: var(--hp-space-md) var(--hp-space-lg);
    border-radius: var(--hp-radius);
    margin: var(--hp-space-xl) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--hp-space-xl);
    flex-wrap: wrap;
    box-shadow: var(--hp-shadow-lg);
}

.hp-footer-stats span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.hp-footer-stats i {
    font-size: 23px;
    opacity: 0.9;
}

.hp-footer-stats strong {
    font-size: 25px;
    font-weight: 700;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --hp-space-lg: 20px;
        --hp-space-xl: 28px;
    }

    .hp-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hp-header h1 {
        font-size: 21px;
    }

    .hp-app-banner-content {
        flex-direction: column;
        text-align: center;
    }

    /* Card spacing on mobile - add margin to columns containing cards */
    .row > .col-md-4,
    .row > .col-md-8 {
        margin-bottom: 15px !important;
    }

    /* Remove double margin from last column in row */
    .row > [class*="col-"]:last-child {
        margin-bottom: 0 !important;
    }

    /* But keep margin if it contains a card */
    .row > .col-md-4:not(:last-child),
    .row > .col-md-8:not(:last-child) {
        margin-bottom: 15px !important;
    }

    /* Profiles sections spacing */
    .hp-profiles-section {
        margin-bottom: 15px;
    }

    /* Main content area cards */
    .hp-main-content .row {
        margin-bottom: 0;
    }

    .hp-main-content .col-md-4,
    .hp-main-content .col-md-8 {
        margin-bottom: 15px;
    }

    .hp-footer-stats {
        flex-direction: column;
        gap: var(--hp-space-sm);
        padding: var(--hp-space-sm) var(--hp-space-md);
        text-align: center;
    }

    .hp-footer-stats span {
        font-size: 14px;
    }

    .hp-footer-stats strong {
        font-size: 19px;
    }

    .hp-login-card .row .col-sm-6 {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hp-card .nav-tabs > li > a {
        padding: 12px 8px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Dark Mode (body.night-mode)
   ========================================================================== */

body.night-mode {
    --hp-bg: #1a1a1f;
    --hp-card-bg: #25252b;
    --hp-text: #f3f4f6;
    --hp-text-light: #9ca3af;
    --hp-border: #3f3f46;
    --hp-border-light: #2d2d33;
    --hp-shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --hp-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --hp-shadow-md: 0 4px 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    --hp-shadow-lg: 0 10px 15px rgba(0,0,0,0.4), 0 4px 6px rgba(0,0,0,0.2);
}

body.night-mode .hp-header h1 {
    color: var(--hp-text);
}

body.night-mode .hp-header h1 i {
    color: #60a5fa;
}

body.night-mode .hp-fb-support {
    background: var(--hp-card-bg);
    border-color: var(--hp-border);
    color: var(--hp-text-light);
}

body.night-mode .hp-fb-support strong {
    color: var(--hp-text);
}

body.night-mode .hp-profiles-section h3 {
    color: var(--hp-text);
}

body.night-mode .hp-profiles-section h3 i,
body.night-mode .hp-profiles-section h3 .fas,
body.night-mode .hp-profiles-section h3 .fa {
    color: #f472b6;
}

body.night-mode .hp-profiles-section .mainPage {
    background: var(--hp-card-bg);
    border-color: var(--hp-border);
    border: 1px solid var(--hp-border);
}

body.night-mode .hp-card {
    background: var(--hp-card-bg);
    border-color: var(--hp-border);
}

body.night-mode .hp-card .nav-tabs {
    background: linear-gradient(180deg, #2a3a4a 0%, #1e2a3a 100%);
    border-bottom-color: var(--hp-border);
}

body.night-mode .hp-card .nav-tabs > li > a {
    color: var(--hp-text);
    font-weight: 600;
}

body.night-mode .hp-card .nav-tabs > li > a:hover {
    color: #60a5fa;
    background: rgba(255,255,255,0.05);
}

body.night-mode .hp-card .nav-tabs > li.active > a,
body.night-mode .hp-card .nav-tabs > li.active > a:hover {
    color: #60a5fa;
    background: var(--hp-card-bg);
    border-bottom-color: #60a5fa;
    font-weight: 700;
}

body.night-mode .hp-card table td {
    color: var(--hp-text);
    border-bottom-color: var(--hp-border-light);
}

body.night-mode .hp-card table thead th {
    background: var(--hp-border-light);
    color: var(--hp-text-light);
}

body.night-mode .hp-card table tr:hover td {
    background: rgba(96, 165, 250, 0.05);
}

body.night-mode .hp-card table a {
    color: #60a5fa;
}

body.night-mode .hp-card table a:hover {
    color: #93c5fd;
}

body.night-mode .hp-login-card {
    background: var(--hp-card-bg);
    border-color: var(--hp-border);
}

body.night-mode .hp-login-card h2 {
    color: var(--hp-text);
}

body.night-mode .hp-login-card h2 i {
    color: #60a5fa;
}

body.night-mode .hp-login-card label {
    color: var(--hp-text);
}

body.night-mode .hp-login-card input[type="text"],
body.night-mode .hp-login-card input[type="password"] {
    background: var(--hp-border-light);
    border-color: var(--hp-border);
    color: var(--hp-text);
}

body.night-mode .hp-login-card input[type="text"]:focus,
body.night-mode .hp-login-card input[type="password"]:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

body.night-mode .hp-login-card hr {
    border-top-color: var(--hp-border);
}

body.night-mode .hp-login-card a {
    color: #60a5fa;
}

body.night-mode .hp-social-buttons .button {
    box-shadow: var(--hp-shadow);
}

body.night-mode .hp-social-buttons #google,
body.night-mode .hp-social-buttons #mojeid {
    background-color: var(--hp-border-light);
    border-color: var(--hp-border);
}

body.night-mode .hp-my-panel h2 {
    color: var(--hp-text);
}

body.night-mode .hp-my-panel h2 i {
    color: #60a5fa;
}

body.night-mode .hp-my-panel h5 {
    color: var(--hp-text);
}

body.night-mode .hp-my-panel hr {
    border-top-color: var(--hp-border);
}

/* User Card Dark Mode */
body.night-mode .hp-user-card {
    background: var(--hp-card-bg);
    border-color: #3b82f6;
}

body.night-mode .hp-user-card .hp-card-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 100%);
}

body.night-mode .hp-user-card .form-control {
    background: var(--hp-border-light);
    border-color: var(--hp-border);
    color: var(--hp-text);
}

body.night-mode .hp-user-card .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

body.night-mode .hp-user-card label {
    color: var(--hp-text);
}

body.night-mode .hp-user-card a {
    color: #60a5fa;
}

body.night-mode .hp-user-card .btn-info.btn-block {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 100%);
    box-shadow: 0 4px 6px rgba(96, 165, 250, 0.2);
}

body.night-mode .hp-user-card .btn-info.btn-block:hover {
    box-shadow: 0 6px 12px rgba(96, 165, 250, 0.3);
}

/* Stats List Dark Mode */
body.night-mode .hp-stats-list li {
    color: var(--hp-text);
    border-bottom-color: var(--hp-border-light);
}

body.night-mode .hp-stats-list li i {
    color: #60a5fa;
}

body.night-mode .hp-stats-list li strong {
    color: #60a5fa;
}

/* Stats Card Dark Mode */
body.night-mode .hp-stats-card {
    background: var(--hp-card-bg);
    border-color: var(--hp-border);
}

body.night-mode .hp-stats-card .hp-card-header {
    background: var(--hp-border-light);
    border-bottom-color: var(--hp-border);
}

body.night-mode .hp-stats-card .hp-card-header h2 {
    color: var(--hp-text);
}

body.night-mode .hp-stats-card .hp-card-header h2 i {
    color: #60a5fa;
}

/* Quick Stats Dark Mode */
body.night-mode .hp-stat-item {
    background: var(--hp-border-light);
}

body.night-mode .hp-stat-item:hover {
    background: var(--hp-card-bg);
    border-color: #60a5fa;
}

body.night-mode .hp-stat-item.has-new {
    background: rgba(96, 165, 250, 0.1);
    border-color: #60a5fa;
}

body.night-mode .hp-stat-item i {
    color: #60a5fa;
}

body.night-mode .hp-stat-item.has-new i {
    color: #f472b6;
}

body.night-mode .hp-stat-value {
    color: var(--hp-text);
}

body.night-mode .hp-stat-item.has-new .hp-stat-value {
    color: #f472b6;
}

body.night-mode .hp-panel-help {
    background: var(--hp-border-light);
}

body.night-mode .hp-panel-help small {
    color: var(--hp-text-light);
}

body.night-mode .hp-panel-help i {
    color: #60a5fa;
}

body.night-mode .hp-my-panel h5 i {
    color: #60a5fa;
}

/* Quick Links Dark Mode */
body.night-mode .hp-quick-link {
    background: var(--hp-border-light);
    color: var(--hp-text);
}

body.night-mode .hp-quick-link i {
    color: #60a5fa;
}

body.night-mode .hp-quick-link:hover {
    background: #1e3a5f;
    color: #fff;
}

body.night-mode .hp-quick-link:hover i {
    color: #fff;
}

body.night-mode .hp-news-card {
    background: var(--hp-card-bg);
    border-color: var(--hp-border);
}

body.night-mode .hp-news-card .hp-card-header {
    background: var(--hp-border-light);
    border-bottom-color: var(--hp-border);
}

body.night-mode .hp-news-card .hp-card-header h2 {
    color: var(--hp-text);
}

body.night-mode .hp-news-card .hp-card-header h2 i {
    color: #f472b6;
}

body.night-mode .hp-news-card .hp-card-body {
    color: var(--hp-text);
}

body.night-mode .hp-news-card hr {
    border-top-color: var(--hp-border-light);
}

body.night-mode .hp-news-card a {
    color: #60a5fa;
}

/* ==========================================================================
   Changelog Styling - Module Colors
   ========================================================================== */

.changelog-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--hp-border-light);
    flex-wrap: wrap;
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-version {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--hp-text-light);
    background: var(--hp-border-light);
    padding: 3px 8px;
    border-radius: 4px;
    min-width: 55px;
    text-align: center;
}

.changelog-date {
    font-size: 12px;
    color: var(--hp-text-light);
    min-width: 75px;
}

.changelog-module {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    min-width: 70px;
    text-align: center;
}

.changelog-desc {
    flex: 1;
    font-size: 14px;
    color: var(--hp-text);
    min-width: 200px;
}

.changelog-meta {
    font-size: 11px;
    color: var(--hp-text-light);
    white-space: nowrap;
}

/* Module color palette - Light mode */
.changelog-module-chat {
    background: #dbeafe;
    color: #1e40af;
}

.changelog-module-diskuze {
    background: #fef3c7;
    color: #92400e;
}

.changelog-module-vzkazy {
    background: #fce7f3;
    color: #9d174d;
}

.changelog-module-profil,
.changelog-module-profily {
    background: #d1fae5;
    color: #065f46;
}

.changelog-module-admin {
    background: #fee2e2;
    color: #991b1b;
}

.changelog-module-obchod {
    background: #e0e7ff;
    color: #3730a3;
}

.changelog-module-system {
    background: #f3e8ff;
    color: #6b21a8;
}

.changelog-module-api {
    background: #ccfbf1;
    color: #0f766e;
}

.changelog-module-napoveda {
    background: #fef9c3;
    color: #854d0e;
}

.changelog-module-radio {
    background: #ffedd5;
    color: #c2410c;
}

.changelog-module-other {
    background: var(--hp-border-light);
    color: var(--hp-text-light);
}

/* Dark mode - changelog */
body.night-mode .changelog-version {
    background: var(--hp-border);
    color: var(--hp-text-light);
}

body.night-mode .changelog-date {
    color: var(--hp-text-light);
}

body.night-mode .changelog-desc {
    color: var(--hp-text);
}

body.night-mode .changelog-meta {
    color: var(--hp-text-light);
}

body.night-mode .changelog-module-chat {
    background: #1e3a5f;
    color: #93c5fd;
}

body.night-mode .changelog-module-diskuze {
    background: #451a03;
    color: #fcd34d;
}

body.night-mode .changelog-module-vzkazy {
    background: #500724;
    color: #fbcfe8;
}

body.night-mode .changelog-module-profil,
body.night-mode .changelog-module-profily {
    background: #064e3b;
    color: #6ee7b7;
}

body.night-mode .changelog-module-admin {
    background: #450a0a;
    color: #fca5a5;
}

body.night-mode .changelog-module-obchod {
    background: #312e81;
    color: #a5b4fc;
}

body.night-mode .changelog-module-system {
    background: #3b0764;
    color: #d8b4fe;
}

body.night-mode .changelog-module-api {
    background: #134e4a;
    color: #5eead4;
}

body.night-mode .changelog-module-napoveda {
    background: #422006;
    color: #fef08a;
}

body.night-mode .changelog-module-radio {
    background: #431407;
    color: #fdba74;
}

body.night-mode .changelog-module-other {
    background: var(--hp-border);
    color: var(--hp-text-light);
}

/* Responsive changelog */
@media (max-width: 600px) {
    .changelog-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .changelog-desc {
        min-width: auto;
        width: 100%;
    }
}

body.night-mode .hp-footer-stats {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 50%, #5c2d5c 100%);
}

/* Legacy compatibility */
body.night-mode .well.loginHP {
    background: var(--hp-card-bg);
    border-color: var(--hp-border);
}

body.night-mode .footer-stats {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 50%, #5c2d5c 100%);
}
