/**
 * marginware.css — Design-specific styles
 * Dark trading platform theme inspired by marginware.com
 * Colors: Black bg, #bcbcbc text, green accent, dark navbar
 */

/* ==========================================================================
   GLOBAL BODY & BASE
   ========================================================================== */

html, body {
    background-color: #000000;
    color: #bcbcbc;
}

a {
    color: #4CAF50;
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: #80E27E; }

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

.page-wrapper {
    background-color: #000000;
}

/* ==========================================================================
   NAVBAR / HEADER — dark Bootstrap inverse style
   ========================================================================== */

.header {
    background: #1a1a1a;
    border-bottom: 1px solid #333333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.header-logo-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-link {
    color: #cccccc !important;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background: rgba(255,255,255,0.08);
}

.nav-dropdown {
    background: #2a2a2a;
    border: 1px solid #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.nav-dropdown-link {
    color: #cccccc;
    font-size: 0.875rem;
}
.nav-dropdown-link:hover {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}
.nav-dropdown-link.active {
    background: #4CAF50;
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.carousel-caption {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.carousel-caption h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    margin: 0;
    line-height: 1.3;
}

.carousel-caption h2 em {
    color: #4CAF50;
    font-style: normal;
    font-weight: 700;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.carousel-btn:hover { background: rgba(255,255,255,0.3); }
.carousel-btn-prev { left: 20px; }
.carousel-btn-next { right: 20px; }

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}
.carousel-indicator.active { background: #4CAF50; }

/* ==========================================================================
   PAGE HEADER SECTIONS (internal pages)
   ========================================================================== */

.page-hero {
    background: #111111;
    border-bottom: 1px solid #2a2a2a;
    padding: 30px 0;
}

.page-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #ffffff;
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #888;
    list-style: none;
    padding: 6px 0 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb a { color: #4CAF50; }
.breadcrumb a:hover { color: #80E27E; }
.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: #555;
}
.breadcrumb-active { color: #bcbcbc; }

/* ==========================================================================
   INTRO SECTION (2-column: text + image)
   ========================================================================== */

.intro-section {
    background: #000000;
    padding: 60px 0;
    border-bottom: 1px solid #1a1a1a;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.intro-text p {
    color: #bcbcbc;
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.intro-text p strong { color: #ffffff; }

.intro-text a {
    color: #4CAF50;
    text-decoration: underline;
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #333;
}

/* ==========================================================================
   SECTIONS — dark backgrounds
   ========================================================================== */

.section {
    padding: 50px 0;
}

.section-dark {
    background: #000000;
}

.section-gray {
    background: #111111;
    border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
}

.section-title {
    color: #ffffff;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.section-header {
    margin-bottom: 32px;
}

.section-subtitle {
    color: #888;
    font-size: 0.95rem;
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */

.category-card {
    display: block;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.25s ease;
    color: #bcbcbc;
}

.category-card:hover {
    background: #222;
    border-color: #4CAF50;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.category-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: background 0.25s;
}

.category-card:hover .category-card-icon {
    background: rgba(76, 175, 80, 0.25);
}

.category-card-icon svg {
    width: 24px;
    height: 24px;
    fill: #4CAF50;
}

.category-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px;
}

.category-card-count {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
    background: #111;
    border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
    padding: 40px 0;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #4CAF50;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.875rem;
    color: #888;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   TAGS SECTION
   ========================================================================== */

.tags-section {
    background: #000;
    padding: 50px 0;
    border-top: 1px solid #1a1a1a;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #bcbcbc;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.tag-card:hover {
    background: #222;
    border-color: #4CAF50;
    color: #fff;
}
.tag-card-featured {
    background: #1a2a1a;
    border-color: rgba(76, 175, 80, 0.4);
    color: #80E27E;
}
.tag-card-icon svg {
    width: 12px;
    height: 12px;
    fill: #4CAF50;
}
.tag-card-count {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 0.75rem;
    color: #888;
}

/* ==========================================================================
   CAROUSEL KEYWORDS
   ========================================================================== */

.carousel-section {
    background: #0a0a0a;
    padding: 40px 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    overflow: hidden;
}

.kw-pill {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #bcbcbc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.kw-pill:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

/* ==========================================================================
   SEO CONTENT SECTION
   ========================================================================== */

.seo-content {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.seo-content p { margin-bottom: 16px; }

/* ==========================================================================
   CTA BUTTON — Bootstrap-style dark outline
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

a.btn-primary,
.btn-primary {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #ffffff !important;
}
.btn-primary:hover {
    background: #388E3C;
    border-color: #388E3C;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    border-color: #cccccc;
    color: #cccccc;
}
.btn-secondary:hover {
    background: #cccccc;
    color: #000000;
}

.btn-default {
    background: transparent;
    border: 1px solid #ccc;
    color: #ccc;
    padding: 12px 30px;
    font-size: 1rem;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    transition: all 0.2s;
}
.btn-default:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

/* ==========================================================================
   ARTICLE CARDS
   ========================================================================== */

.article-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.article-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.article-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.4;
}

.article-card-title a {
    color: #ffffff;
}
.article-card-title a:hover { color: #4CAF50; }

.article-card-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
}

.article-card-category {
    color: #4CAF50;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: block;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #bcbcbc;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.page-btn:hover { background: #222; border-color: #4CAF50; color: #fff; }
.page-btn.active { background: #4CAF50; border-color: #4CAF50; color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: #0a0a0a;
    border-top: 1px solid #1e1e1e;
    padding: 40px 0 20px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand p {
    color: #888;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 12px;
}

.footer-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #888;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #4CAF50; }

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    color: #666;
    font-size: 0.8rem;
    text-align: justify;
}

.footer-bottom p { margin-bottom: 8px; }
.footer-disclaimer { color: #666; font-size: 0.78rem; line-height: 1.6; }

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */

.article-page {
    background: #000;
}

.article-header {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 30px 0;
}

.article-header h1 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.3;
}

.article-meta {
    color: #888;
    font-size: 0.875rem;
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.article-content {
    color: #bcbcbc;
    line-height: 1.8;
    font-size: 0.97rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #ffffff;
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
    margin: 0 0 16px 20px;
    color: #bcbcbc;
}
.article-content li { margin-bottom: 6px; }

.article-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #2a2a2a;
    margin: 16px 0;
}

.article-content a { color: #4CAF50; }
.article-content a:hover { color: #80E27E; }

.article-content blockquote {
    border-left: 3px solid #4CAF50;
    padding-left: 16px;
    color: #999;
    margin: 20px 0;
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.article-content th {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #333;
}
.article-content td {
    padding: 10px 14px;
    border: 1px solid #222;
    color: #bcbcbc;
}
.article-content tr:nth-child(even) td { background: #0d0d0d; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-section {
    background: #000;
    padding: 50px 0;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #ccc;
    font-size: 0.875rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #bcbcbc;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    font-family: var(--font-main);
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    background: #1e1e1e;
}
.form-control::placeholder { color: #555; }

textarea.form-control { resize: vertical; min-height: 120px; }

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404-section {
    background: #000;
    min-height: calc(100vh - var(--header-height) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-404-number {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 700;
    color: #222;
    line-height: 1;
    margin-bottom: 20px;
}

.error-404-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #ffffff;
    margin-bottom: 12px;
}

.error-404-desc {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* ==========================================================================
   MOBILE / RESPONSIVE
   ========================================================================== */

.mobile-nav {
    background: #1a1a1a;
    border-right: 1px solid #2a2a2a;
}

.mobile-nav-link {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 500;
}
.mobile-nav-link:hover,
.mobile-nav-link.active { color: #4CAF50; }

@media (max-width: 1000px) {
    .nav-main { display: none; }
    .mobile-menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    .hero-carousel { height: 300px; }
    .carousel-caption h2 { font-size: 1.2rem; }
    .intro-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-carousel { height: 220px; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .tags-grid { gap: 8px; }
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.modal {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #bcbcbc;
}

.modal-header {
    border-bottom: 1px solid #2a2a2a;
}

.modal-title { color: #fff; }

.modal-close {
    color: #888;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.modal-close:hover { color: #fff; }

/* ==========================================================================
   HR dividers
   ========================================================================== */

hr {
    border: none;
    border-top: 1px solid #222;
    margin: 30px 0;
}

/* ==========================================================================
   CARD — dark theme override
   ========================================================================== */

.card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.card:hover {
    border-color: #4CAF50;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.card-title { color: #ffffff; }
.card-title a { color: #ffffff; }
.card-title a:hover { color: #4CAF50; }
.card-text { color: #888; }
.card-meta { border-top-color: #2a2a2a; color: #666; }

/* ==========================================================================
   BREADCRUMB — dark theme override
   ========================================================================== */

.breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
}
.breadcrumb-item { color: #666; font-size: 0.875rem; }
.breadcrumb-item a { color: #4CAF50; }
.breadcrumb-item a:hover { color: #80E27E; }
.breadcrumb-item:not(:last-child)::after { color: #444; }
.breadcrumb-item:last-child { color: #999; }

/* ==========================================================================
   PAGINATION — dark theme override
   ========================================================================== */

.pagination { list-style: none; padding: 0; }
.pagination-list { list-style: none; padding: 0; }
.pagination-list li a,
.pagination-list li span {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #bcbcbc;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination-list li a:hover {
    background: #222;
    border-color: #4CAF50;
    color: #fff;
}
.pagination-current {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: #000 !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar-widget {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}
.sidebar a { color: #bcbcbc; font-size: 0.875rem; }
.sidebar a:hover { color: #4CAF50; }

/* ==========================================================================
   RELATED ARTICLES
   ========================================================================== */

.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #222;
}
.related-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

/* ==========================================================================
   ARTICLE TAGS
   ========================================================================== */

.article-tags-section {
    margin-top: 30px;
    padding: 20px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}
.article-tags-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.article-tags-title { color: #fff; font-size: 0.9rem; font-weight: 600; margin: 0; }
.article-tags-icon svg { width: 16px; height: 16px; fill: #4CAF50; }
.article-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #bcbcbc;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.article-tag:hover { background: #4CAF50; border-color: #4CAF50; color: #fff; }

/* ==========================================================================
   TOAST
   ========================================================================== */

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #bcbcbc;
    padding: 16px 20px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}
.toast-success { border-left: 3px solid #4CAF50; }
.toast-error { border-left: 3px solid #f44336; }
.toast-content strong { display: block; color: #fff; margin-bottom: 4px; }
.toast-content span { font-size: 0.875rem; color: #888; }
.toast-close { background: transparent; border: none; color: #666; cursor: pointer; padding: 2px; margin-left: auto; }
.toast-close:hover { color: #fff; }
.toast-hiding { opacity: 0; transition: opacity 0.3s; }

/* ==========================================================================
   PAGE HERO BANNER (internal pages)
   ========================================================================== */

.page-hero {
    background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
    border-bottom: 1px solid #2a2a2a;
    padding: 35px 0 25px;
}
.page-hero .container { padding-top: 0; padding-bottom: 0; }
.page-hero h1 {
    color: #ffffff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 0 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

/* ==========================================================================
   FORM controls (dark)
   ========================================================================== */

.form-input, .form-textarea, .form-control {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #bcbcbc;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: var(--font-main);
}
.form-input:focus,
.form-textarea:focus,
.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    background: #1e1e1e;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #555; }

.form-label { display: block; color: #ccc; font-size: 0.875rem; margin-bottom: 6px; font-weight: 500; }
.form-group { margin-bottom: 20px; }

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-code {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 700;
    color: #222;
    line-height: 1;
    margin-bottom: 20px;
}
.error-message {
    color: #bcbcbc;
    font-size: 1rem;
    margin-bottom: 28px;
}

/* ==========================================================================
   SECTION TITLE on dark background
   ========================================================================== */

.section-title { color: #ffffff; }
.section-subtitle { color: #888; }

/* ==========================================================================
   CASINO CARDS — dark theme override
   ========================================================================== */

.casino-card-new {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.casino-card-new:hover {
    border-color: #4CAF50;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.casino-card-new-name {
    color: #ffffff;
}

.casino-card-new-rating .rating-value {
    color: #cccccc;
    background: rgba(255, 184, 0, 0.1);
}

.casino-card-new-btn {
    background: linear-gradient(135deg, #1a7d4c 0%, #388E3C 100%);
}
.casino-card-new-btn:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
}

@media (max-width: 768px) {
    .casino-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 16px;
    }
}

@media (max-width: 480px) {
    .casino-grid-new {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}
