* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2a3050 100%);
    color: #fff;
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* ==================== AD PLACEMENTS ==================== */
.ad-banner-top,
.ad-banner-bottom {
    max-width: 728px;
    height: 90px;
    margin: 20px auto;
    background: rgba(26, 31, 58, 0.4);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    display: none !important; /* ΚΡΥΦΟ ΜΕΧΡΙ ΤΗΝ ΕΓΚΡΙΣΗ */
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    color: rgba(255, 215, 0, 0.5);
    font-size: 14px;
    font-style: italic;
}

.sidebar-ad-left {
    position: fixed;
    left: 20px;
    top: 150px;
    width: 300px;
    height: 250px;
    background: rgba(26, 31, 58, 0.4);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    display: none !important; /* ΚΡΥΦΟ ΜΕΧΡΙ ΤΗΝ ΕΓΚΡΙΣΗ */
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.ad-in-content {
    max-width: 100%;
    height: 250px;
    margin: 30px auto;
    background: rgba(26, 31, 58, 0.4);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    display: none !important; /* ΚΡΥΦΟ ΜΕΧΡΙ ΤΗΝ ΕΓΚΡΙΣΗ */
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    .sidebar-ad-left {
        display: none !important;
    }
}

/* ==================== HEADER STYLES ==================== */
.app-header {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.logo-icon {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #0a0e27;
    font-size: 1.5em;
    font-weight: 900;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.app-title {
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ffd700, #fff, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

.app-subtitle {
    opacity: 0.8;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* ==================== SEO CONTENT SECTIONS ==================== */
.intro-content {
    background: rgba(26, 31, 58, 0.6);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.intro-content h2 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-card h3 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* ==================== MAIN NAVIGATION TABS ==================== */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(26, 31, 58, 0.8);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-tab-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c52 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== APP GRID LAYOUT ==================== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.calc-panel {
    background: rgba(26, 31, 58, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
}

.panel-title {
    font-size: 1.4em;
    color: #ffd700;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255,215,0,0.1);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== FORM INPUTS & CONTROLS ==================== */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95em;
    color: #ddd;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-unit {
    position: absolute;
    right: 15px;
    color: rgba(255,255,255,0.4);
    font-weight: bold;
    font-size: 0.9em;
}

input[type="number"], select, textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

input[type="number"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25);
}

/* Street Selection Buttons */
.street-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.street-btn {
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.street-btn.active {
    background: #ffd700;
    color: #0a0e27;
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* Quick Outs Grid */
.quick-outs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.quick-out-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px;
    font-size: 0.9em;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.quick-out-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.custom-outs-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Outs Builder Panel */
.outs-builder {
    background: rgba(10, 14, 39, 0.4);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.builder-title {
    font-size: 0.9em;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.builder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    cursor: pointer;
}

.builder-item input {
    cursor: pointer;
}

.builder-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.clear-btn {
    background: transparent;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 0.85em;
    text-decoration: underline;
}

/* Modifiers Sub-section */
.modifiers-section {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    background: rgba(255,71,87,0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,71,87,0.15);
}

/* Action Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c52 100%);
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* ==================== RESULTS PANEL STYLES ==================== */
.results-panel {
    background: rgba(16, 21, 46, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.main-metric-box {
    background: rgba(10, 14, 39, 0.8);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.main-metric-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ffd700;
}

.metric-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 5px;
}

.metric-value-huge {
    font-size: 3em;
    font-weight: 800;
    color: #ffd700;
    line-height: 1.1;
}

.metric-subtext {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 5px;
    color: #ff6b35;
}

/* Progress Bars */
.progress-container {
    margin-bottom: 18px;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 600;
}

.progress-bar-bg {
    background: rgba(0,0,0,0.3);
    height: 100%;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease-out;
}

.fill-equity { background: linear-gradient(90deg, #ffd700, #ff8c52); }
.fill-odds { background: #3498db; }

/* Stat Row Outputs */
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1.05em;
}

.stat-row:last-of-type {
    border-bottom: none;
}

.stat-label {
    color: #aaa;
}

.stat-value {
    font-weight: bold;
}

/* Strategic Decision Output Box */
.decision-box {
    margin-top: 25px;
    background: rgba(10, 14, 39, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.decision-action {
    font-size: 1.3em;
    font-weight: 800;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.action-call {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 2px solid #00ff88;
}

.action-fold {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 2px solid #ff4757;
}

.success-box {
    color: #b3ffda;
    font-size: 0.95em;
    line-height: 1.5;
}

.warning-box {
    color: #ffb3b8;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Logger Sub-panel */
.logger-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255,255,255,0.15);
}

.logger-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* ==================== HAND HISTORY TABLE ==================== */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: rgba(10, 14, 39, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95em;
}

.log-table th, .log-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.log-table th {
    background: rgba(0,0,0,0.2);
    color: #ffd700;
    font-weight: 600;
}

.empty-log {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 20px !important;
}

/* ==================== BANKROLL TABS SPECIFICS ==================== */
.br-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.br-card {
    background: rgba(10, 14, 39, 0.5);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.br-card-val {
    font-size: 1.6em;
    font-weight: bold;
    color: #00ff88;
    margin-top: 5px;
}

/* ==================== NASH MATRIX STYLES ==================== */
.nash-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.nash-matrix-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.nash-matrix {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1;
}

.nash-cell {
    background: #1a1f3a;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 3px;
    cursor: help;
    user-select: none;
    transition: transform 0.1s;
}

.nash-cell:hover {
    transform: scale(1.15);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.nash-push {
    background: #2ed573;
    color: #0a0e27;
}

.nash-fold {
    background: #ff4757;
    color: #fff;
    opacity: 0.4;
}

.nash-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9em;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

/* ==================== ARTICLES / FAQ EXTENSIONS ==================== */
.educational-section {
    background: rgba(26, 31, 58, 0.5);
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}

.educational-section h2 {
    color: #ffd700;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-left: 4px solid #ff6b35;
    padding-left: 12px;
}

.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.faq-item p {
    color: #ccc;
    line-height: 1.7;
}

/* ==================== NEWSLETTER SECTION ==================== */
.newsletter-section {
    background: linear-gradient(135deg, #111635 0%, #1c2354 100%);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.newsletter-section h2 {
    color: #ffd700;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.newsletter-section p {
    color: #ddd;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
}

.newsletter-form button {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #ff8c52;
}

.privacy-note {
    font-size: 0.85em !important;
    opacity: 0.5;
    margin-top: 12px;
    margin-bottom: 0 !important;
}

.privacy-note a {
    color: #ffd700;
}

/* ==================== FOOTER STYLES ==================== */
.site-footer {
    background: rgba(10, 14, 39, 0.8);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffd700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.copyright {
    opacity: 0.7;
    margin: 10px 0;
}

.disclaimer {
    font-size: 0.85em;
    opacity: 0.6;
    font-style: italic;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .app-title {
        font-size: 2em;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tab-btn {
        font-size: 0.9em;
        padding: 10px 16px;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .br-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-outs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}