/**
 * 123B THEME STYLESHEET - MATCHING TOP 1 FLATSOME PALETTE
 * Primary: #4893d5 | Cyan Header: #19bbe8 | Accent: #ffce21 | Alert: #e84f35
 */

:root {
    --primary: #4893d5;
    --primary-dark: #2874fc;
    --header-cyan: #19bbe8;
    --accent-gold: #ffce21;
    --alert-red: #e84f35;
    --alert-dark: #cf2e2e;
    --text-color: #000000;
    --text-muted: #555555;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-stack); color: var(--text-color); background: var(--bg-light); line-height: 1.65; padding-bottom: 70px; }
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Headings with Top 1 Color */
h1, h2, h3, h4, h5, h6, .heading-font { color: var(--primary); font-weight: 700; }
h1 { font-size: 26px; line-height: 1.35; margin-bottom: 16px; }
h2 { font-size: 22px; line-height: 1.4; margin-bottom: 14px; border-left: 5px solid var(--primary); padding-left: 12px; }
h3 { font-size: 18px; line-height: 1.4; margin: 18px 0 10px; }
p { font-size: 15px; color: #222222; margin-bottom: 14px; line-height: 1.7; text-align: justify; }

/* Top Alert Bar */
.header-top { background-color: var(--primary); color: #ffffff; font-size: 13px; padding: 6px 0; text-align: center; }
.header-top .live-status { font-weight: 700; color: #ffffff; display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 6px #22c55e; display: inline-block; }

/* Main Header */
header { background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.header-main { display: flex; align-items: center; justify-content: space-between; height: 75px; }
.brand-logo { font-size: 28px; font-weight: 900; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.brand-logo span { font-size: 14px; font-weight: 700; background: var(--header-cyan); color: #fff; padding: 2px 8px; border-radius: 4px; }
.header-bottom-nav { background-color: var(--header-cyan); min-height: 48px; display: none; }
.header-bottom-nav ul { list-style: none; display: flex; gap: 20px; align-items: center; height: 48px; }
.header-bottom-nav ul li a { color: #ffffff; font-weight: 700; font-size: 14px; text-transform: uppercase; line-height: 48px; display: block; }
.header-bottom-nav ul li a:hover { color: var(--accent-gold); text-decoration: none; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; font-size: 14px; font-weight: 700; border-radius: 4px; cursor: pointer; text-transform: uppercase; transition: all 0.2s; border: none; }
.button.primary { background-color: var(--primary); color: #ffffff; }
.button.primary:hover { background-color: var(--primary-dark); text-decoration: none; }
.button.alert { background-color: var(--alert-red); color: #ffffff; border: 1px solid var(--accent-gold); box-shadow: 0 2px 6px rgba(232,79,53,0.3); }
.button.alert:hover { background-color: var(--alert-dark); text-decoration: none; }
.button.gold { background-color: var(--accent-gold); color: #000000; }
.button.gold:hover { background-color: #f59e0b; text-decoration: none; }
.btn-large { padding: 14px 28px; font-size: 16px; border-radius: 6px; width: 100%; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #091a28 0%, #173b5c 100%); color: #fff; padding: 44px 0 40px; text-align: center; }
.hero h1 { color: #ffffff; }
.hero p { color: #cbd5e1; max-width: 820px; margin: 0 auto 24px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; background: rgba(255, 206, 33, 0.15); border: 1px solid var(--accent-gold); color: var(--accent-gold); padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.hero-thumb-box { margin: 18px auto 26px; max-width: 320px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.4); border: 2px solid rgba(255,255,255,0.2); }
.hero-thumb-box img { width: 100%; height: auto; display: block; aspect-ratio: 1/1; object-fit: cover; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; max-width: 540px; margin: 0 auto; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 720px; margin: 28px auto 0; text-align: left; }
.trust-item { background: rgba(255,255,255,0.06); padding: 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #ffffff; display: flex; align-items: center; gap: 8px; }

/* Content Cards */
.card-box { background: #ffffff; border-radius: 8px; padding: 30px 24px; border: 1px solid var(--border-color); margin-bottom: 24px; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.styled-table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 14px; margin: 16px 0; }
.styled-table th { background-color: var(--primary); color: #ffffff; text-align: left; padding: 12px 16px; font-weight: 700; }
.styled-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); color: #000; }
.styled-table tr:hover { background-color: #f8fafc; }
.ping-fast { color: #16a34a; font-weight: 700; }
.table-btn { padding: 6px 14px; border-radius: 4px; font-weight: 700; font-size: 13px; background: var(--primary); color: #fff; display: inline-block; }
.table-btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }

/* Verticals Grid */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.game-item { background: #ffffff; border-radius: 8px; padding: 20px 16px; border: 1px solid var(--border-color); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s; }
.game-item:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.game-item h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.game-item p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

/* Callout Boxes */
.callout-info { background: #eff6ff; border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 0 6px 6px 0; margin: 16px 0; font-size: 14px; color: #1e3a8a; }
.callout-gold { background: #fffbeb; border-left: 4px solid var(--accent-gold); padding: 14px 18px; border-radius: 0 6px 6px 0; margin: 16px 0; font-size: 14px; color: #78350f; }

/* Ambassador & Steps */
.ambassador-card { background: #0f172a; color: #ffffff; border-radius: 12px; padding: 28px 20px; display: flex; flex-direction: column; gap: 20px; align-items: center; margin: 24px 0; }
.ambassador-card img { width: 100%; max-width: 380px; border-radius: 8px; }
.ambassador-card h3 { color: var(--accent-gold); }
.ambassador-card p { color: #cbd5e1; }

.step-card { display: flex; gap: 14px; background: #f8fafc; border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.step-num { width: 34px; height: 34px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* 404 Specific Styling */
.error-404-wrap { text-align: center; padding: 60px 16px; }
.error-code { font-size: 96px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 12px; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }
.error-title { font-size: 24px; font-weight: 800; color: var(--text-color); margin-bottom: 16px; }
.error-desc { font-size: 15px; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; text-align: center; }
.sitemap-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 680px; margin: 30px auto; text-align: left; }
.sitemap-item { background: #fff; border: 1px solid var(--border-color); border-radius: 6px; padding: 14px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.sitemap-item:hover { border-color: var(--primary); background: #f0f7ff; text-decoration: none; }

/* Footer */
footer { background: #0b1329; color: #94a3b8; padding: 44px 0 28px; font-size: 13px; border-top: 1px solid #1e293b; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 24px; text-align: center; }
.footer-cols h4 { color: #ffffff; font-size: 15px; margin-bottom: 12px; }
.footer-cols p a { color: #94a3b8; }
.footer-cols p a:hover { color: #ffffff; }
.footer-copy { border-top: 1px solid #1e293b; padding-top: 20px; margin-top: 30px; text-align: center; }

/* Sticky Mobile Bottom Bar */
.mobile-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #ffffff; border-top: 1px solid var(--border-color); display: flex; height: 60px; z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,0.08); }
.m-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; gap: 3px; color: #475569; }
.m-btn.btn-reg-m { background: var(--alert-red); color: #fff; font-size: 12px; }
.m-btn.btn-login-m { background: var(--primary); color: #fff; font-size: 12px; }
.m-btn svg { width: 20px; height: 20px; fill: currentColor; }

@media (min-width: 768px) {
    .header-bottom-nav { display: block; }
    h1 { font-size: 34px; }
    .hero-ctas { flex-direction: row; }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .ambassador-card { flex-direction: row; text-align: left; padding: 36px 30px; }
    .sitemap-links-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr; text-align: left; }
    .footer-copy { text-align: left; }
    .mobile-bottom-bar { display: none; }
    body { padding-bottom: 0; }
}

/* Brand Logo Image Styling */
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo img { max-height: 52px; width: auto; display: block; object-fit: contain; }
@media (max-width: 549px) {
    .brand-logo img { max-height: 42px; }
}
