/* ==========================================================================
   1. VARIABLES & BASIC SETTINGS
   ========================================================================== */

/* ===== COLOR & TYPOGRAPHY VARIABLES ===== */
:root {
    /* Color variables */
    --primary-blue: #007bff;
    --secondary-green: #28a745;
    --accent-blue: #3B82F6;
    --accent-blue-rgb: 59, 130, 246;
    --accent-green: #10B981;
    --accent-green-rgb: 16, 185, 129;
    --dark-bg: #12181b;
    --medium-bg: #1a2226;
    --light-bg: #232c31;
    --card-bg: #1f292e;
    --text-primary: #e8e8e8;
    --text-secondary: #bfc9d1;
    --text-headings: #ffffff;
    --border-color: #343f46;
    --border-color-rgb: 52, 63, 70; /* For rgba usage */
    --input-bg: #2c3a41;
    --input-border: #4a5c67;
    --danger-red: #dc3545;
    --danger-red-rgb: 220, 53, 69;
    --warning-orange: #ffc107;
    --warning-orange-rgb: 255, 193, 7;
    --info-purple: #6f42c1;
    --info-purple-rgb: 111, 66, 193;

    /* Typography & Spacing */
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --base-font-size: 16px;
    --border-radius: 6px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 3px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.3), 0 6px 6px rgba(0,0,0,0.25);
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
    --transition-speed: 0.3s;
    --page-container-padding: 30px; /* For main content area padding */
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove default outline and provide custom focus styles where needed */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 0; /* Remove default browser outline */
}

/* Ensure focus-visible is styled for accessibility if outlines are removed */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Modal open state - prevent scrolling */
body.modal-open {
    overflow: hidden;
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}
ul { list-style: none; }


/* ===== TYPOGRAPHY (Headings, Links, Text) ===== */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
a:hover,
a:focus {
    color: var(--primary-blue);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-headings);
    margin-bottom: 0.75em;
    line-height: 1.3;
}
h2.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-headings);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
}
h2.page-title i {
    margin-right: 15px;
    color: var(--accent-blue);
    font-size: 0.9em;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: -15px;
    margin-bottom: 30px;
    max-width: 800px;
}


/* ==========================================================================
   2. LAYOUT STRUCTURE
      - Page Container, Sidebar, Main Content, Header
   ========================================================================== */

/* ===== CORE LAYOUT ===== */
.page-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    background-color: var(--dark-bg);
    padding-top: var(--header-height); /* Space for fixed header */
    transition: margin-left var(--transition-speed) ease-in-out;
    min-height: 100vh;
}

/* ===== SIDEBAR SPECIFIC STYLES ===== */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--medium-bg);
    color: var(--text-primary);
    padding: 25px 0;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: transform var(--transition-speed) ease-in-out;
    overflow-y: auto;
}
.logo-container {
    text-align: center;
    padding: 0 20px 10px 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.logo-text {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--text-headings);
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.logo-accent-green { color: var(--accent-green); }
.logo-accent-blue { color: var(--accent-blue); }

.navigation {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 15px 0 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.navigation::-webkit-scrollbar { width: 6px; }
.navigation::-webkit-scrollbar-thumb { background-color: var(--border-color); border-radius: 3px; }
.navigation::-webkit-scrollbar-track { background-color: transparent; }

.navigation h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 20px 0 10px 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.navigation ul li a.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    margin-bottom: 4px;
    font-weight: 500;
    transition: background-color var(--transition-speed) ease, 
               color var(--transition-speed) ease, 
               padding-left var(--transition-speed) ease;
    white-space: nowrap;
}
.navigation ul li a.nav-link i.fa-fw {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1em;
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
}
.navigation ul li a.nav-link:hover,
.navigation ul li a.nav-link:focus {
    background-color: var(--light-bg);
    color: var(--text-primary);
    padding-left: 20px;
    text-decoration: none;
}
.navigation ul li a.nav-link:hover i.fa-fw,
.navigation ul li a.nav-link:focus i.fa-fw {
    color: var(--accent-green);
}
.navigation ul li a.nav-link.active,
.navigation ul li a.nav-link.active:focus {
    background-color: var(--accent-blue);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.navigation ul li a.nav-link.active i.fa-fw { color: white; }

.user-profile-sidebar {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
}
.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--accent-green);
    object-fit: cover;
}
.user-info span { display: block; font-weight: 600; font-size: 0.95rem; }
.user-info small { font-size: 0.8rem; color: var(--text-secondary); }
.user-action-link { margin-left: auto; padding: 5px 8px !important; font-size: 1.1rem; }
.user-action-link i { margin-right: 0 !important; }
.logout-link { color: var(--danger-red) !important; }
.logout-link:hover { color: white !important; background-color: var(--danger-red) !important; }

.user-profile-sidebar.guest-profile {
    justify-content: flex-start;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    min-height: 70px; /* Ensure consistent height with logged-in user profile */
}
.user-profile-sidebar.guest-profile .user-avatar-sm {
    border: 2px solid #1877f2; /* Facebook blue example */
    background: #fff;
}
.user-profile-sidebar.guest-profile .user-info span {
    color: var(--accent-blue);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.1rem;
}
.user-profile-sidebar.guest-profile .user-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.user-profile-sidebar.guest-profile .user-action-link,
.user-profile-sidebar.guest-profile .logout-link {
    display: none !important;
}

.sidebar-footer {
    padding: 15px 20px;
    text-align: center;
    font-size: 0.8em;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}
.social-links-sidebar { margin-top: 10px; }
.social-links-sidebar a {
    color: var(--text-secondary); 
    margin: 0 8px; 
    font-size: 1.1rem;
    transition: color var(--transition-speed) ease;
}
.social-links-sidebar a:hover { color: var(--accent-blue); }

/* ===== MAIN HEADER SPECIFIC STYLES ===== */
.main-header {
    height: var(--header-height);
    background-color: var(--medium-bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 999;
    transition: left var(--transition-speed) ease-in-out;
}
.mobile-menu-toggle {
    display: none; /* Hidden on desktops by default */
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
    padding: 5px; /* Add some padding for easier clicking */
}
.breadcrumb-container {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.breadcrumb-container i { margin-right: 8px; color: var(--accent-green); }
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}
.notification-icon { position: relative; cursor: pointer; }
.notification-icon i { font-size: 1.3rem; }
.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--danger-red);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    border: 1px solid var(--medium-bg);
}

/* ===== CONTENT PAGE & ANIMATIONS ===== */
.content-page {
    padding: var(--page-container-padding) calc(var(--page-container-padding) + 10px); /* More horizontal padding */
    display: none;
    animation: fadeInPage 0.5s ease-in-out;
}
.content-page.active-page {
    display: block;
}
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   3. COMMON UI COMPONENTS
      - Buttons, Forms, Modals, Tooltips, Pagination, etc.
   ========================================================================== */

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none; /* Prevent text selection on click */
}
.btn i { margin-right: 8px; }
.btn-block { display: block; width: 100%; }

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-primary { background-color: var(--accent-blue); color: white; border-color: var(--accent-blue); }
.btn-primary:hover,
.btn-primary:focus { background-color: var(--primary-blue); border-color: var(--primary-blue); }

.btn-secondary { background-color: var(--accent-green); color: white; border-color: var(--accent-green); }
.btn-secondary:hover,
.btn-secondary:focus { background-color: var(--secondary-green); border-color: var(--secondary-green); }

.btn-warning { background-color: var(--warning-orange); color: var(--dark-bg); border-color: var(--warning-orange); }
.btn-warning:hover,
.btn-warning:focus { background-color: #e67e22; border-color: #e67e22; color: white; }

.btn-danger { background-color: var(--danger-red); color: white; border-color: var(--danger-red); }
.btn-danger:hover,
.btn-danger:focus { background-color: #c0392b; border-color: #c0392b; }

.btn-primary-outline { background-color: transparent; color: var(--accent-blue); border-color: var(--accent-blue); }
.btn-primary-outline:hover,
.btn-primary-outline:focus { background-color: var(--accent-blue); color: white; }

.btn-secondary-outline { background-color: transparent; color: var(--accent-green); border-color: var(--accent-green); }
.btn-secondary-outline:hover,
.btn-secondary-outline:focus { background-color: var(--accent-green); color: white; }

.btn-danger-outline { background-color: transparent; color: var(--danger-red); border-color: var(--danger-red); }
.btn-danger-outline:hover,
.btn-danger-outline:focus { background-color: var(--danger-red); color: white; }

.btn-sm { padding: 8px 15px; font-size: 0.85rem; }
.btn-xs { padding: 5px 10px; font-size: 0.75rem; text-transform: none; }
.btn-lg { padding: 15px 30px; font-size: 1.1rem; }

.btn-login, .btn-register { box-shadow: var(--shadow-sm); }
.btn-login { background-color: var(--accent-blue); color:white; }
.btn-login:hover,
.btn-login:focus { background-color: var(--primary-blue); color:white; }
.btn-register { background-color: var(--accent-green); color:white; }
.btn-register:hover,
.btn-register:focus { background-color: var(--secondary-green); color:white; }
.btn-action-icon { padding: 8px 10px; }
.btn-action-icon i { margin-right: 0; }

.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-top-left-radius: var(--border-radius); border-bottom-left-radius: var(--border-radius); }
.btn-group .btn:last-child { border-top-right-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); }
.btn-group .btn:not(:last-child) { border-right: none; }

/* ===== FORMS (GENERAL) ===== */
.form-control {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--input-bg);
    background-clip: padding-box;
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(var(--accent-blue-rgb), .25);
}
.form-control::placeholder { color: var(--text-secondary); opacity: 0.7; }
textarea.form-control { min-height: 120px; resize: vertical; }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.required { color: var(--danger-red); margin-left: 2px; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 3px; /* Aligns checkbox with first line of text */
    cursor: pointer;
    appearance: none;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
}
.form-check-input:checked {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}
.form-check-input:checked::before { /* Checkmark for checkbox */
    content: '\f00c'; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em;
}
.form-check-label {
    font-size: 0.97rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
    margin: 0; /* Reset margin */
    word-break: break-word;
}
.form-check-label a.small-link {
    font-size: inherit;
    color: var(--accent-blue);
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Slightly less dark overlay */
    display: none; /* Hidden by default */
    z-index: 1050; /* Bootstrap's modal z-index */
    animation: fadeInModalOverlay 0.3s ease-out;
    padding: 20px; /* Padding around modal content area */
}

/* When modal is shown, use grid for centering */
.modal[style*="display: block"],
.modal.show { /* .show class for JS toggling */
    display: grid !important;
    place-items: center;
}

.modal-content {
    background-color: var(--medium-bg);
    color: var(--text-primary);
    margin: 0 auto; /* Centering fallback for older browsers */
    padding: 30px 35px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 700px; /* Default max-width */
    max-height: 90vh; /* Prevent modal from being too tall */
    overflow-y: auto; /* Scroll content if it overflows */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative; /* For close button positioning */
    animation: slideInModalContent 0.4s ease-out;
}

/* Specific Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h2 { /* Title within modal header */
    margin: 0;
    font-size: 1.5rem; /* Slightly smaller than page title */
    color: var(--text-headings); /* Use heading color */
}
/* Modal Content Title (if not using modal-header) */
.modal-content > h2:first-child { 
    margin-top: 0; 
    font-size: 1.8rem; 
    color: var(--accent-blue); 
}

.close-modal-btn {
    color: var(--text-secondary);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    line-height: 1;
    padding: 0; /* Remove default button padding */
}
.close-modal-btn:hover,
.close-modal-btn:focus {
    color: var(--text-primary); 
}

.modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right; /* Default alignment */
    display: flex; /* For better button spacing */
    justify-content: flex-end;
    gap: 10px;
}
.modal-footer .btn { margin-left: 0; } /* Remove default margin if using gap */


@keyframes fadeInModalOverlay { 
    from { background-color: rgba(0,0,0,0); } 
    to { background-color: rgba(0,0,0,0.6); } 
}
@keyframes slideInModalContent {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== TOOLTIPS ===== */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]:before,
[data-tooltip]:after {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
    z-index: 1070; /* Above modals */
}
[data-tooltip]:before { /* Arrow */
    content: "";
    border: 5px solid transparent;
    border-top-color: var(--medium-bg); /* Arrow points down */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
}
[data-tooltip]:after { /* Tooltip text */
    content: attr(data-tooltip);
    padding: 7px 12px;
    min-width: 150px;
    width: max-content;
    max-width: 300px;
    background-color: var(--medium-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px; /* Space between arrow and tooltip */
    box-shadow: var(--shadow-sm);
}
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
    visibility: visible;
    opacity: 1;
}
/* Position variants */
[data-tooltip-position="top"]:before { bottom: 100%; top: auto; }
[data-tooltip-position="top"]:after { bottom: 100%; top: auto; }

[data-tooltip-position="bottom"]:before {
    top: 100%; bottom: auto;
    border-top-color: transparent; border-bottom-color: var(--medium-bg);
    margin-bottom: 0; margin-top: 5px;
}
[data-tooltip-position="bottom"]:after {
    top: 100%; bottom: auto;
    margin-bottom: 0; margin-top: 10px;
}
[data-tooltip-position="left"]:before {
    top: 50%; right: 100%; bottom: auto; left: auto;
    margin: 0 5px 0 0; transform: translateY(-50%);
    border-top-color: transparent; border-left-color: var(--medium-bg);
}
[data-tooltip-position="left"]:after {
    top: 50%; right: 100%; bottom: auto; left: auto;
    margin: 0 10px 0 0; transform: translateY(-50%);
}
[data-tooltip-position="right"]:before {
    top: 50%; left: 100%; bottom: auto;
    margin: 0 0 0 5px; transform: translateY(-50%);
    border-top-color: transparent; border-right-color: var(--medium-bg);
}
[data-tooltip-position="right"]:after {
    top: 50%; left: 100%; bottom: auto;
    margin: 0 0 0 10px; transform: translateY(-50%);
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow pagination to wrap on small screens */
}
.page-link {
    color: var(--text-secondary);
    padding: 8px 12px;
    margin: 3px; /* Adjusted margin for wrapping */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
.page-link:hover,
.page-link:focus {
    background-color: var(--light-bg);
    color: var(--text-primary);
    text-decoration: none;
}
.page-link.active,
.page-link.active:focus {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    font-weight: bold;
}
.page-link.disabled {
    color: #6c757d; /* Bootstrap's disabled color */
    pointer-events: none;
    border-color: #444;
}


/* ==========================================================================
   4. PAGE-SPECIFIC SECTIONS & WIDGETS
   ========================================================================== */

/* ===== DASHBOARD & WIDGETS ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
.widget {
    background-color: var(--card-bg);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid transparent;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.stat-widget { display: flex; align-items: center; }
.widget-icon {
    font-size: 1.8rem;
    padding: 15px;
    border-radius: 50%;
    margin-right: 20px;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.widget-content h3 { /* Sub-heading within widget */
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}
.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-headings);
    line-height: 1.1;
    margin-bottom: 3px;
}
.stat-change { font-size: 0.9rem; display: flex; align-items: center; }
.stat-change i { margin-right: 5px; }
.stat-change.positive { color: var(--accent-green); }
.stat-change.negative { color: var(--danger-red); }
.stat-change.neutral { color: var(--text-secondary); }
.stat-change.warning { color: var(--warning-orange); }

/* Background utility classes for widget icons etc. */
.bg-blue { background-color: var(--accent-blue); color: white; }
.bg-green { background-color: var(--accent-green); color: white; }
.bg-orange { background-color: var(--warning-orange); color: var(--dark-bg); }
.bg-purple { background-color: var(--info-purple); color: white; }
.bg-red { background-color: var(--danger-red); color: white; }

.chart-widget .widget-title, .large-widget .widget-title { /* Widget title */
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 600;
}
.dashboard-chart-img { /* Placeholder */
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    opacity: 0.8; 
}

/* --- Simple table for dashboard --- */
.simple-table { width: 100%; border-collapse: collapse; }
.simple-table th, .simple-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.simple-table th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.simple-table tbody tr:hover { background-color: var(--light-bg); }
.text-green-icon { color: var(--accent-green); font-size: 1.2em; }
.text-orange-icon { color: var(--warning-orange); font-size: 1.2em; }
.text-yellow-icon { color: #FFEB3B; font-size: 1.2em; }
.text-blue-icon { color: var(--accent-blue); font-size: 1.2em; }

/* --- Admin Panel (Dashboard Widget) --- */
.admin-panel-widget p { margin-bottom: 15px; }
.admin-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.admin-actions-list .btn { text-align: left; }

/* ===== AUTHENTICATION PAGES (Login, Register) ===== */
.auth-page .page-title { text-align: center; border-bottom: none; margin-bottom: 20px; }

/* --- Modern Login/Register Form (Enhanced Design) --- */
.login-form {
    background: linear-gradient(145deg, var(--medium-bg), var(--card-bg));
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    width: 100%;
    max-width: 520px;
    margin: 1rem auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 20px 20px 0 0;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 8px 25px rgba(var(--accent-blue-rgb), 0.3);
}

.form-icon.register-icon {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
}

.form-icon i {
    font-size: 1.5rem;
    color: white;
}

.login-form h2 {
    color: var(--text-headings);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 400;
}

/* Form Groups */
.login-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-form .form-group.terms-group {
    margin-bottom: 2rem;
}

.login-form label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
    gap: 0.5rem;
}

.login-form label i {
    font-size: 1rem;
    color: var(--accent-blue);
    width: 16px;
}

/* Enhanced Input Styling */
.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 48px;
    font-family: var(--font-body);
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="text"]:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(var(--accent-blue-rgb), 0.1);
    outline: none;
    transform: translateY(-1px);
    background: var(--card-bg);
}

.login-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    font-weight: 400;
}

/* Input Focus Border Animation */
.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    transition: width 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.login-form input:focus + .input-focus-border {
    width: 100%;
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--accent-blue);
    background: rgba(var(--accent-blue-rgb), 0.1);
}

/* Form Options (Remember me + Forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    gap: 0.5rem;
    margin: 0;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    background: var(--input-bg);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.remember-me input[type="checkbox"]:checked::after { /* Checkmark for checkbox */
    content: '\f00c';
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
}

.forgot-password-link {
    color: var(--accent-blue);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.forgot-password-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Enhanced Buttons */
.login-form .btn-auth {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(var(--accent-blue-rgb), 0.3);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.login-form .btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(var(--accent-blue-rgb), 0.4);
    background: linear-gradient(135deg, #2563eb, var(--accent-blue));
}

.login-form .btn-register {
    background: linear-gradient(135deg, var(--accent-green), #10b981);
    box-shadow: 0 8px 25px rgba(var(--accent-green-rgb), 0.3);
}

.login-form .btn-register:hover {
    background: linear-gradient(135deg, #10b981, var(--accent-green));
    box-shadow: 0 12px 30px rgba(var(--accent-green-rgb), 0.4);
}

.btn-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.login-form .btn-auth:hover .btn-icon {
    transform: translateX(3px);
}

/* Form Divider */
.form-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.form-divider span {
    background: var(--medium-bg);
    color: var(--text-secondary);
    padding: 0 1rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 0;
}

.auth-links p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-switch-link {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-switch-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Input Hints */
.input-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    font-style: italic;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--input-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--danger-red);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Strength levels */
.strength-weak .strength-fill { width: 25%; background: var(--danger-red); }
.strength-fair .strength-fill { width: 50%; background: var(--warning-orange); }
.strength-good .strength-fill { width: 75%; background: var(--accent-blue); }
.strength-strong .strength-fill { width: 100%; background: var(--accent-green); }

/* Modern Checkbox for Terms */
.modern-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
}

.modern-checkbox .form-check-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin: 2px 0 0 0;
    flex-shrink: 0;
}

.modern-checkbox .form-check-input:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(var(--accent-blue-rgb), 0.1);
}

.modern-checkbox .form-check-input:checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.modern-checkbox .form-check-input:checked::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
}

.modern-checkbox .form-check-label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

.terms-text a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Auth Messages */
.auth-error,
.auth-success {
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-error {
    background-color: rgba(var(--danger-red-rgb), 0.1);
    color: var(--danger-red);
    border: 1px solid rgba(var(--danger-red-rgb), 0.3);
}

.auth-error::before {
    content: '\f071';
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
}

.auth-success {
    background-color: rgba(var(--accent-green-rgb), 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(var(--accent-green-rgb), 0.3);
}

.auth-success::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
}

/* Loading state for buttons */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-auth.loading .btn-text {
    opacity: 0;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Specific Adjustments */
#login-modal .modal-content,
#register-modal .modal-content {
    max-width: 600px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

#login-modal .close-modal-btn,
#register-modal .close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#login-modal .close-modal-btn:hover,
#register-modal .close-modal-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

/* Responsive Design for Auth Forms */
@media (max-width: 768px) {
    .login-form {
        max-width: 95%;
        margin: 0.5rem auto;
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .form-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .form-icon i {
        font-size: 1.3rem;
    }
    
    .login-form h2 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
    
    .login-form .form-group {
        margin-bottom: 1.2rem;
    }
    
    .login-form label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .login-form input {
        padding: 0.8rem 0.9rem;
        font-size: 0.95rem;
        border-radius: 8px;
        min-height: 44px;
    }
    
    .login-form .btn-auth {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 8px;
        min-height: 46px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .remember-me {
        font-size: 0.85rem;
    }
    
    .forgot-password-link {
        font-size: 0.85rem;
    }
    
    .auth-links p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }
    
    .form-icon {
        width: 45px;
        height: 45px;
    }
    
    .login-form h2 {
        font-size: 1.4rem;
    }
    
    .login-form input {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
        min-height: 42px;
    }
    
    .login-form .btn-auth {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .modern-checkbox .form-check-input {
        width: 18px;
        height: 18px;
    }
    
    .modern-checkbox .form-check-label {
        font-size: 0.85rem;
    }
}


/* ===== SUREBETS SECTION ===== */

/* --- Surebets Filters (Legacy) --- */
.filters-toolbar {
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; flex-direction: column; }
.filter-group label { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.filter-group select, .filter-group input[type="number"], .filter-group input[type="text"] {
    padding: 8px 10px;
    font-size: 0.9rem;
    min-width: 150px; /* Base min-width for desktop */
}

/* --- Surebets Filters (Modern) --- */
.filter-bar-modern, .filter-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px; /* Added gap between rows */
  margin-bottom: 20px; /* Increased margin */
  background: linear-gradient(90deg, #232c31 60%, #26313a 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(var(--accent-blue-rgb),0.10), 0 1.5px 8px rgba(var(--accent-green-rgb),0.08);
  padding: 22px 28px;
  border: 2px solid var(--border-color);
  position: relative;
}
.filter-bar label.filter-label { /* Main label for a filter row */
  margin-bottom: 0;
  min-width: max-content;
  font-size: 1.08rem;
  color: var(--accent-blue);
  font-weight: 700;
  margin-right: 18px;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px #1a2226;
}
.filter-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px; /* Gap between items in a row */
  row-gap: 10px; /* Gap for wrapped items */
  width: 100%;
}
#bookmaker-checkboxes, #bkcount-checkboxes { /* Container for checkbox groups */
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: linear-gradient(90deg, #1f292e 60%, #26313a 100%);
  border-radius: 999px; /* Pill shape */
  padding: 7px 18px 7px 10px;
  box-shadow: 0 1.5px 8px rgba(var(--accent-blue-rgb),0.07);
  border: 1.5px solid transparent;
}
#bookmaker-checkboxes label, #bkcount-checkboxes label { /* Individual checkbox labels */
  display: flex;
  align-items: center;
  font-size: 1.01rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border-radius: 999px;
  padding: 4px 14px 4px 8px;
  margin-bottom: 0;
  margin-right: 10px; /* Spacing between labels */
  min-width: max-content;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
  position: relative;
  gap: 8px;
  border: 1.5px solid var(--accent-blue);
  box-shadow: 0 2px 8px rgba(var(--accent-blue-rgb),0.15);
}
#bookmaker-checkboxes label:hover, #bkcount-checkboxes label:hover,
#bookmaker-checkboxes label:focus-within, #bkcount-checkboxes label:focus-within {
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 100%);
  color: #fff;
  border-color: var(--accent-green); /* Change border on hover/focus */
  box-shadow: 0 4px 18px rgba(var(--accent-blue-rgb),0.18);
}
#bookmaker-checkboxes input[type="checkbox"], #bkcount-checkboxes input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--accent-blue);
  border-radius: 7px;
  background: var(--input-bg);
  transition: background 0.2s, border 0.2s;
  cursor: pointer;
  position: relative;
  /* margin-right: 8px;  Gap is handled by parent label */
  outline: none;
  display: inline-block;
  vertical-align: middle;
}
#bookmaker-checkboxes input[type="checkbox"]:hover, #bkcount-checkboxes input[type="checkbox"]:hover {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(var(--accent-green-rgb),0.18);
}
#bookmaker-checkboxes input[type="checkbox"]:checked, #bkcount-checkboxes input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--accent-blue) 60%, var(--accent-green) 100%);
  border-color: var(--accent-green);
}
#bookmaker-checkboxes input[type="checkbox"]:checked::after, #bkcount-checkboxes input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  position: absolute;
  left: 6px; top: 2.5px;
  width: 7px; height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  border-radius: 2px;
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  animation: checkmark-pop 0.22s cubic-bezier(.4,2,.6,1) 1;
}
@keyframes checkmark-pop {
  0% { transform: scale(0.5) rotate(45deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(45deg); opacity: 1; }
  100% { transform: scale(1.1) rotate(45deg); opacity: 1; }
}
/* Focus style for checkbox itself, :focus-visible is better for accessibility */
#bookmaker-checkboxes input[type="checkbox"]:focus-visible, 
#bkcount-checkboxes input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
/* Styling for the text part of the label when checkbox is checked */
#bookmaker-checkboxes label input[type="checkbox"]:checked + span, /* Assuming span is after input */
#bkcount-checkboxes label input[type="checkbox"]:checked + span {
  color: #fff; /* Text color changes if label has :hover/:focus style */
}
/* Active state for the whole label when its checkbox is checked */
#bookmaker-checkboxes label.active-bookmaker, /* JS might add this class */
#bkcount-checkboxes label.active-bookmaker {
  background: linear-gradient(90deg, rgba(var(--accent-blue-rgb),0.1) 0%, rgba(var(--accent-green-rgb),0.1) 100%);
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(var(--accent-blue-rgb),0.15);
}
/* Style for non-active labels, if needed for contrast */
#bookmaker-checkboxes label:not(.active-bookmaker),
#bkcount-checkboxes label:not(.active-bookmaker) {
  opacity: 0.85;
  border-color: rgba(var(--accent-blue-rgb),0.5);
  box-shadow: 0 2px 8px rgba(var(--accent-blue-rgb),0.1);
}
#bookmaker-checkboxes label:not(.active-bookmaker):hover,
#bkcount-checkboxes label:not(.active-bookmaker):hover {
  opacity: 1;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 18px rgba(var(--accent-blue-rgb),0.18);
}




/* --- Surebets Table (Vertical/Legacy - For contexts where it's still used) --- */
.surebets-table-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}
.surebets-table {
    width: 100%;
    border-collapse: collapse;
}
.surebets-table th, .surebets-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    white-space: nowrap; 
}
.surebets-table th {
    background-color: var(--light-bg);
    color: var(--text-headings);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    cursor: pointer;
}
.surebets-table th i.fa-sort, .surebets-table th i.fa-sort-amount-down, .surebets-table th i.fa-sort-amount-up {
    margin-left: 5px;
    color: var(--text-secondary);
}
.surebets-table tbody tr:nth-child(even) { background-color: var(--medium-bg); }
.surebets-table tbody tr:hover { background-color: var(--light-bg); /* transform: scale(1.01); box-shadow: var(--shadow-md); - scale can be jarring */ }
.surebets-table td.profit-cell.positive {
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.05em;
}
/* Allow specific columns to wrap text */
.surebets-table th.wrap-text,
.surebets-table td.wrap-text {
    white-space: normal;
}


/* --- Surebets List (Horizontal - Desktop Layout) --- */
.surebet-horizontal-list-desktop { /* Wrapper for desktop version */
    display: block; /* Default display state */
    width: 100%;
    margin-top: 20px;
    font-family: var(--font-body);
}
.surebet-horizontal-header, 
.surebet-horizontal-list-desktop .surebet-horizontal-row { /* Apply to rows within desktop list */
    display: grid;
    grid-template-columns: 0.6fr 1fr 3fr 0.8fr 0.8fr 0.8fr 0.7fr;
    align-items: stretch;
    font-size: 1em;
}
.surebet-horizontal-header {
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(90deg, #232c31 60%, #26313a 100%);
    color: #bfc9d1;
    font-size: 0.95em; /* Header font slightly smaller */
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 8px;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border-radius: 10px 10px 0 0; /* Rounded top corners */
}
.surebet-horizontal-list-desktop .surebet-horizontal-row {
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(var(--accent-blue-rgb),0.10);
    border: 1.5px solid var(--border-color);
    background: linear-gradient(90deg, #1a2226 60%, #232c31 100%);
    transition: box-shadow 0.18s, border 0.18s, background 0.18s;
    min-height: 60px; /* Ensure consistent row height */
    position: relative;
    border-radius: 12px;
    align-items: center; /* Vertically center content in grid cells */
    overflow: visible; /* Allow tooltips to extend outside */
}
.surebet-horizontal-list-desktop .surebet-horizontal-row:hover {
    box-shadow: 0 8px 32px rgba(var(--accent-blue-rgb),0.18);
    border-color: var(--accent-blue);
    background: linear-gradient(90deg, #232c31 60%, #26313a 100%);
    z-index: 50; /* Bring hovered row above others so tooltip isn't covered */
}

.sh-col { /* Styling for individual columns/cells in the horizontal list */
    display: flex;
    flex-direction: column; /* Default, good for multiple lines of info */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally by default */
    padding: 14px 12px;
    min-width: 0; /* Allow shrinking */
    word-break: break-word;
    gap: 2px; /* Gap between elements within a cell */
    height: 100%; /* Fill height of the row */
    text-align: center; /* Default text align */
}
/* Specific column alignments */
.sh-col.event, .surebet-horizontal-header .sh-col.event {
    align-items: flex-start;
    text-align: left;
    padding-left: 40px;
}
.sh-col.bookmaker, .surebet-horizontal-header .sh-col.bookmaker {
    color: var(--accent-blue) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100%;
}
.sh-col.market { font-weight: 500; color: var(--accent-blue); }
.sh-col.market .main-bet { font-weight: 700; font-size: 1.05em; color: var(--text-primary); }
.sh-col.market .period-info { font-size: 0.85em; color: var(--text-secondary); font-weight: normal; }

.event-info { /* Container for event teams and tournament */
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-height: 48px; /* Ensure consistent height */
}
.event-teams {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}
.event-tournament {
    font-size: 0.85em;
    color: #bfc9d1;
    font-weight: normal;
    line-height: 1.2;
}
.sh-col.odds { /* For columns showing odds */
    font-weight: 700;
    color: var(--accent-green); /* Default odds color */
}
.sh-col.profit {
    font-weight: 700;
    color: var(--accent-green);
    font-size: 1.15em;
}
.sh-col.profit .sh-prong-value span { /* Profit value styling */
    background-color: rgba(var(--accent-green-rgb), 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    min-width: 70px; /* Ensure some width */
    display: inline-flex;
    align-items: center;
    color: var(--accent-green);
    white-space: nowrap;
}
.sh-col.profit .sh-prong-value span:hover {
    background-color: rgba(var(--accent-green-rgb), 0.25);
}
.sh-prong-value { /* Generic value container within a cell, e.g., for odds or market */
    margin-bottom: 2px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center; /* Default center, override if needed */
    gap: 7px;
    height: 100%;
}
.sh-col.event .sh-prong-value { justify-content: flex-start; } /* Align market in event col */

.sh-bet-link { /* Link to bookmaker site */
    color: var(--accent-blue);
    margin-left: 7px;
    font-size: 1.08em;
    transition: color 0.18s, transform 0.18s;
    display: inline-flex;
    align-items: center;
}
.sh-bet-link:hover {
    color: #fff; /* Brighter on hover */
    transform: scale(1.18);
    text-shadow: 0 2px 8px var(--accent-blue);
}
.initiator-filled { color: var(--accent-blue); font-size: 0.95em; margin-left: 4px; }
.initiator-empty { color: #BDBDBD; font-size: 0.95em; margin-left: 4px; }

.sh-time-stack { /* For time and date column */
    display: block;
    line-height: 1.1; /* Adjusted for better spacing */
    text-align: center; /* Default for desktop time column */
}
.sh-hour-stack {
    font-size: 1.1em; /* Slightly larger hour */
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
}
.sh-date-stack {
    font-size: 0.9em; /* Slightly smaller date */
    color: #e0e0e0;
    font-weight: 400;
    letter-spacing: 0.2px;
    display: block;
}

.sh-col.icon-col { /* For sport icon column */
    min-width: 70px; /* Adjusted */
    max-width: 90px;
    padding: 14px 8px; /* Adjusted padding */
}
.sh-icon-value { /* Container for icon and label */
    display: flex;
    flex-direction: column; /* Stack icon and label vertically */
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
}
.sh-sport-icon { /* The sport icon itself (e.g., <i> tag) */
    font-size: 1.5rem; /* Adjust icon size as needed */
    color: var(--text-secondary); /* Default icon color */
}
.sh-sport-label-inline { /* Sport name below icon */
    font-size: 0.85em;
    color: #bfc9d1;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bookmaker-logo {
    /* Ensure all bookmaker logos render at a consistent visual size */
    height: 32px !important;              /* Fixed height for desktop/tablet */
    max-height: 32px !important;          /* Prevent oversizing */
    width: auto !important;               /* Preserve aspect ratio */
    max-width: 90px !important;           /* Hard-stop to avoid very wide logos */
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.18s, border 0.18s;
}
.bookmaker-logo-link:hover .bookmaker-logo {
    box-shadow: 0 2px 10px var(--accent-blue);
    border: 1.5px solid var(--accent-blue);
}
.bookmaker-logo-link {
    display: inline-flex; /* Use flex for alignment */
    align-items: center;
    justify-content: center; /* Center logo if cell is wider */
}

/* Initial display states for layout toggling (Desktop first) */
.surebet-horizontal-list-desktop { display: block; }
.surebet-horizontal-list-mobile { display: none; }


/* --- Surebet Calculator Button (Plus Button) --- */
.surebet-plus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Slightly smaller */
    height: 30px; /* Slightly smaller */
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #2563eb 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(var(--accent-blue-rgb),0.15);
    font-size: 1.2em; /* Slightly smaller icon */
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    outline: none;
    margin-left: 6px;
    position: relative; /* For potential badges or tooltips */
}
.surebet-plus-btn:hover, .surebet-plus-btn:focus {
    background: linear-gradient(135deg, #2563eb 0%, #22c55e 100%);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(var(--accent-blue-rgb),0.22);
}
.surebet-plus-btn i { pointer-events: none; } /* Ensure icon doesn't interfere with click */

/* --- Surebet IG Image Button --- */
.surebet-ig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    outline: none;
    margin-left: 6px;
    position: relative;
}
.surebet-ig-btn:hover, .surebet-ig-btn:focus {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.22);
}
.surebet-ig-btn i { pointer-events: none; }

/* Mobile IG button styling */
.mobile-ig-btn {
    width: auto !important;
    height: auto !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    gap: 0.5rem;
}
.mobile-ig-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3) !important;
}

/* ===== TOOLS SECTION (e.g., Surebet Calculator Page / Modal) ===== */
.tool-card { /* General container for a tool like the calculator on a page */
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
}
/* Surebet Calculator specific styles (often within a modal) */
.surebet-calculator .calculator-controls { margin-bottom: 20px; } /* Controls like "Number of Legs" */

.surebet-calculator #odds-inputs { /* Container for all odd input groups */
    display: flex; /* Use flex for better wrapping and alignment */
    flex-wrap: wrap;
    gap: 15px;
}
.surebet-calculator #odds-inputs .form-group { /* Each individual odd input group */
    flex: 1 1 150px; /* Grow, shrink, with a base of 150px */
    margin-bottom: 0; /* Remove bottom margin as gap handles it */
}
.surebet-calculator .leg-input input { width: 100%; } /* Ensure input takes full width of its form-group */

#calculator-results {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
#calculator-results h4 { font-size: 1.2rem; margin-bottom: 10px; }
#calculator-results p { margin-bottom: 8px; font-size: 1rem; }
#stakes-per-leg div { margin-bottom: 5px; } /* Spacing for individual stake lines */

.stakes-per-leg-box { /* Results box for stakes */
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95rem; /* Slightly smaller font for results */
}
.stakes-per-leg-box.surebet {
    background: linear-gradient(135deg, rgba(var(--accent-green-rgb), 0.1), rgba(var(--accent-green-rgb), 0.05));
    border: 1px solid rgba(var(--accent-green-rgb), 0.2);
    color: var(--text-primary);
}
.stakes-per-leg-box.nosurebet {
    background: linear-gradient(135deg, rgba(var(--danger-red-rgb), 0.1), rgba(var(--danger-red-rgb), 0.05));
    border: 1px solid rgba(var(--danger-red-rgb), 0.2);
    color: var(--text-primary);
}
.text-green-profit { color: var(--accent-green) !important; font-weight: 600; }
.text-red-loss { color: var(--danger-red) !important; font-weight: 600; } /* For negative profit */


/* --- Modal Surebet Details (if different from calculator) --- */
#modal-surebet-body p { margin-bottom: 10px; font-size: 1rem; }
#modal-surebet-body h4 { margin-top: 20px; margin-bottom: 10px; font-size: 1.1rem; }
#modal-surebet-stakes { margin-left: 20px; list-style: disc; }
#modal-surebet-stakes li { margin-bottom: 8px; }


/* ===== PRICING SECTION ===== */
#pricing .page-title {
    text-align: center;
    border-bottom: none;
    margin-bottom: 10px;
    font-size: 2.5rem;
    justify-content: center;
    color: var(--text-headings);
}
#pricing .page-title strong.highlight-orange-text {
    font-weight: 700;
    color: var(--text-headings);
    position: relative;
    display: inline-block;
    line-height: 1.1;
    padding-bottom: 0;
    vertical-align: middle;
}
#pricing .page-title strong.highlight-orange-text::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    height: 4px;
    background-color: var(--warning-orange);
    width: 60%;
    border-radius: 2px;
}
#pricing .section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}
.pricing-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    align-items: stretch; /* Make cards equal height */
}
.pricing-card-custom {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.pricing-card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.pricing-card-custom .pricing-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-headings);
    margin-bottom: 20px;
}
.pricing-card-custom .pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 2px;
    line-height: 1;
}
.pricing-card-custom .pricing-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}
.pricing-card-custom .pricing-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    flex-grow: 1; /* Allows description to take up space */
    min-height: 70px; /* Ensure some space for description */
    line-height: 1.5;
}
.pricing-card-custom .btn-buy {
    width: auto; /* Let button size by content and padding */
    padding: 12px 40px;
    margin: 0 auto; /* Center button */
    text-transform: uppercase;
    font-weight: 700;
}
/* Recommended (Highlighted) Card */
.pricing-card-custom.recommended {
    background-color: var(--medium-bg); /* Slightly different for emphasis */
    border: 2px solid var(--accent-blue);
    transform: scale(1.03); /* Make it pop slightly */
    box-shadow: 0 6px 20px rgba(var(--accent-blue-rgb), 0.3);
}
.pricing-card-custom.recommended:hover {
    transform: translateY(-8px) scale(1.03); /* Maintain scale on hover */
    box-shadow: 0 10px 30px rgba(var(--accent-blue-rgb), 0.4);
}
.pricing-card-custom.recommended .pricing-title,
.pricing-card-custom.recommended .pricing-price {
    color: var(--accent-blue); /* Emphasize with accent color */
}
.pricing-card-custom.recommended .pricing-period,
.pricing-card-custom.recommended .pricing-description {
    color: var(--text-primary); /* Ensure readability */
}
.pricing-card-custom.recommended .btn-buy {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}
.pricing-card-custom.recommended .btn-buy:hover,
.pricing-card-custom.recommended .btn-buy:focus {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}
/* Default card button style (Outline) */
.pricing-card-custom:not(.recommended) .btn-buy {
    /* Uses .btn-primary-outline styles by default if that class is added */
    /* Or define explicitly: */
    background-color: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}
.pricing-card-custom:not(.recommended) .btn-buy:hover,
.pricing-card-custom:not(.recommended) .btn-buy:focus {
    background-color: var(--accent-blue);
    color: white;
}

/* ===== HOW IT WORKS SECTION ===== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.step-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) ease;
}
.step-item:hover { transform: translateY(-5px); }
.step-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    /* flex-direction: column; -- if number is inside */
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    position: relative;
    box-shadow: var(--shadow-md);
}
.step-icon { font-size: 2.2rem; color: white; } /* Icon color depends on wrapper bg */
.step-number {
    position: absolute;
    bottom: -10px; 
    right: -5px;
    background-color: white;
    color: var(--dark-bg); /* Text color for number badge */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-bg);
}
.step-item h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-headings); }
.step-item p { font-size: 0.9rem; color: var(--text-secondary); }

.video-tutorial-promo { margin-top: 40px; }
.video-placeholder {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    height: auto; /* Let aspect-ratio control height */
    background-color: var(--medium-bg);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin: 20px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}
.video-placeholder:hover { background-color: var(--light-bg); }
.video-placeholder .fab.fa-youtube { font-size: 4rem; color: #FF0000; margin-bottom: 15px; }
.video-placeholder span { font-size: 1.1rem; color: var(--text-secondary); }


/* ===== FAQ SECTION ===== */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
    background-color: var(--card-bg);
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 18px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-headings);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed);
}
.faq-question:hover,
.faq-question:focus {
    background-color: var(--light-bg);
}
.faq-question i.fa-chevron-down {
    transition: transform var(--transition-speed) ease;
    color: var(--text-secondary);
}
.faq-item.open .faq-question i.fa-chevron-down { transform: rotate(180deg); }
.faq-answer {
    padding: 0 25px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease-out 0.1s;
}
.faq-item.open .faq-answer {
    max-height: 500px; /* Adjust if content is very long */
    padding-top: 10px;
    padding-bottom: 20px;
    opacity: 1;
}
.faq-answer p { margin-bottom: 10px; }

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.testimonial-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    border-top: 4px solid var(--accent-green);
}
.testimonial-card::before { /* Quote icon */
    content: '\f10d'; /* Font Awesome quote-left */
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--accent-green);
    opacity: 0.2;
    position: absolute;
    top: 15px;
    left: 20px;
}
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    border: 3px solid var(--accent-green);
    box-shadow: var(--shadow-sm);
    object-fit: cover; /* Ensure image covers the area nicely */
}
.testimonial-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}
.testimonial-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-headings);
    margin-bottom: 3px;
}
.testimonial-source { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== CONTACT PAGE ===== */
.contact-container-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}
.contact-info-box h3 { font-size: 1.4rem; margin-bottom: 20px; color: var(--accent-blue); }
.contact-info-box p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}
.contact-info-box p i.fa-fw {
    margin-right: 12px;
    color: var(--text-secondary);
    font-size: 1.2em;
    width: 20px; 
    margin-top: 3px;
}
/* Removed .text-blue, .text-green overrides as i.fa-fw has specific color */

.social-links-contact { display: flex; gap: 15px; margin-top: 10px; }
.social-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.social-icon:hover,
.social-icon:focus {
    color: var(--accent-blue);
    transform: scale(1.2);
}
.social-icon.fa-facebook-f:hover { color: #1877F2; }
.social-icon.fa-twitter:hover { color: #1DA1F2; }
.social-icon.fa-instagram:hover { color: #E4405F; }
.social-icon.fa-linkedin-in:hover { color: #0A66C2; }

.contact-form-detailed h3 { font-size: 1.4rem; margin-bottom: 20px; color: var(--accent-green); }
.form-row { /* Used in contact form for side-by-side inputs */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== LEGAL PAGES (Terms, Privacy) ===== */
.legal-page {
    background-color: var(--card-bg);
    padding: var(--page-container-padding) calc(var(--page-container-padding) + 10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    max-width: 900px; /* Slightly narrower for better readability */
    margin: 0 auto;
}
.legal-page .page-title {
    margin-bottom: 30px; 
    font-size: 2rem;
    color: var(--text-headings); /* Changed from --text-primary for consistency */
    border-bottom-color: var(--accent-blue); /* Consistent with other page titles */
}
.legal-page .page-title i { color: var(--accent-blue); }

.legal-page h3 { 
    font-size: 1.5rem; /* More prominent */
    color: var(--text-headings); 
    margin-top: 30px; 
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color); /* Subtle separation */
}
.legal-page h3:first-of-type { margin-top: 0; } /* No top margin for the very first h3 */

.legal-page p { 
    margin-bottom: 15px; 
    line-height: 1.7; 
}
.legal-page ul { 
    list-style: disc; 
    margin-left: 25px; 
    margin-bottom: 15px; 
    padding-left: 5px; /* Add some padding to list items */
}
.legal-page li { margin-bottom: 10px; line-height: 1.6; }

/* --- Privacy Policy Specific Content Styling (if needed for more distinction) --- */
.privacy-content { /* Can be applied to a div wrapping the main content of privacy page */
    /* background: var(--medium-bg); */ /* Optional: if different bg is desired */
    /* padding: 2rem; */ /* Already handled by .legal-page */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}
.privacy-content h3 { /* Styles already defined in .legal-page h3 */ }
.privacy-content p { /* Styles already defined in .legal-page p */ }
.privacy-content ul { /* Styles already defined in .legal-page ul */ }
.privacy-content ul li::before { /* Custom bullet if needed */
    /* content: "•";
    color: var(--accent-blue);
    position: absolute;
    left: -1.5rem;
    font-size: 1.2em; */
}
.privacy-content .last-updated {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== PAYMENT DETAILS (Modal Content) ===== */
.payment-details {
    background: linear-gradient(90deg, #1a2226 60%, #232c31 100%);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(var(--accent-blue-rgb),0.08);
    font-size: 1.05em; /* Slightly smaller base font */
}
.payment-details p {
    margin-bottom: 12px; /* Increased spacing */
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5; /* Better readability */
}
#modalIban {
    background: var(--accent-green-rgb); /* Use RGB for background */
    color: var(--accent-green);
    font-weight: 700;
    letter-spacing: 1px; /* Reduced letter spacing */
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 1.05em; /* Adjusted font size */
    margin-right: 8px;
    display: inline-block;
    border: 1px solid rgba(var(--accent-green-rgb), 0.3);
}
#copyIbanBtn {
    background: var(--accent-green);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--accent-green-rgb),0.10);
    transition: background 0.18s, transform 0.15s;
    padding: 6px 10px; /* Added padding */
    font-size: 0.9em; /* Adjusted font size */
}
#copyIbanBtn:hover {
    background: var(--secondary-green); /* Use variable */
    transform: scale(1.05);
}
#modalPaymentCode {
    background: #f3f4f6; /* Light gray, good contrast with dark text */
    color: var(--accent-blue);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 1.05em; /* Adjusted */
    margin-left: 8px;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid var(--border-color); /* Add subtle border */
}
.important-note {
    background: rgba(var(--danger-red-rgb),0.08);
    border-left: 4px solid var(--danger-red);
    border-radius: 7px;
    padding: 12px 16px; /* Increased padding */
    margin-bottom: 18px;
    color: var(--danger-red);
    font-size: 1em; /* Adjusted */
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Specific modal footer button styling */
.modal-footer .btn.payment-confirm-btn { 
    width: 100%; /* Full width in mobile/stacked footer */
    font-size: 1.1em; /* Slightly smaller */
    border-radius: 8px;
    padding: 12px 0; /* Adjusted padding */
    margin-top: 10px; /* If footer is column-direction */
    box-shadow: 0 2px 8px rgba(var(--accent-green-rgb),0.10);
}


/* ==========================================================================
   5. UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center !important; }
.btn-block-mobile { /* Becomes block on mobile */
    display: inline-block; /* Default for larger screens */
    width: auto;
}


/* ==========================================================================
   6. RESPONSIVE STYLES
   ========================================================================== */

/* ===== LARGE DESKTOPS (Optional adjustments if needed) ===== */
@media (min-width: 1200px) {
    /* Example: Increase sidebar width on very large screens */
    /* :root { --sidebar-width: 300px; } */
}

/* ===== TABLET & SMALLER DESKTOPS (e.g., max-width: 992px) ===== */
@media (max-width: 992px) {
    :root { 
        --sidebar-width: 240px; 
        --page-container-padding: 20px;
    }
    .dashboard-grid { 
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    }
    .contact-container-grid { 
        grid-template-columns: 1fr; /* Stack contact info and form */
    }
    .pricing-grid-custom { 
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Slightly adjust minmax */
    }
    .pricing-card-custom.recommended { 
        transform: scale(1); /* Reset recommended card scaling if it causes layout issues */
    }

    /* Surebets Horizontal List Adjustments for smaller desktops */
    .surebet-horizontal-header, 
    .surebet-horizontal-list-desktop .surebet-horizontal-row {
        grid-template-columns: 0.5fr 0.5fr 2fr 1fr 0.8fr 0.8fr 0.7fr; /* Adjust column ratios */
        font-size: 0.95em;
    }
    .sh-col { padding: 12px 8px; } /* Reduce padding in cells */
}


/* ===== MOBILE DEVICES (e.g., max-width: 768px) ===== */
@media (max-width: 768px) {
    :root { 
        --sidebar-width: 260px; /* Sidebar width for mobile when open */
        --page-container-padding: 15px; 
        --base-font-size: 15px; /* Slightly smaller base font for mobile */
    }
    h2.page-title { font-size: 1.8rem; }

    /* --- Mobile Menu & Sidebar --- */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg); /* More prominent shadow when open */
        transition: transform var(--transition-speed) ease; /* Ensure transition is smooth */
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .main-header { left: 0; }
    .mobile-menu-toggle { display: flex; /* Use flex for better alignment if icon has text */ }

    /* --- General Layout & Component Adjustments --- */
    .content-page { padding: var(--page-container-padding); }
    
    .filters-toolbar { /* Legacy filters */
        flex-direction: column; 
        align-items: stretch; 
        gap: 15px;
    }
    .filter-group select, 
    .filter-group input[type="number"], 
    .filter-group input[type="text"] { 
        width: 100%; 
        min-width: 0; /* Override desktop min-width */
    }

    .form-row { /* e.g., in Contact Form */
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    
    /* --- Responsive Modals --- */
    .modal { padding: 10px; /* Reduce padding around modal content */ }
    .modal-content { 
        max-width: 95vw;
        max-height: 95vh;
        padding: 25px 20px; /* Adjust internal padding */
    }
    .modal-content h2, .modal-header h2 { font-size: 1.4rem; }
    .modal-footer {
        flex-direction: column; /* Stack buttons */
        gap: 10px;
        text-align: center;
        padding: 15px;
    }
    .modal-footer .btn { width: 100%; margin-left: 0; }

    /* Surebet Calculator Modal on Mobile */
    #surebet-calc-modal .modal-content {
        padding: 20px 15px; /* Specific padding for calc modal */
    }
    .surebet-calculator .form-group { margin-bottom: 15px; }
    .surebet-calculator #odds-inputs {
        flex-direction: column; /* Stack odd inputs */
        gap: 12px;
    }
    .surebet-calculator #odds-inputs .form-group { min-width: 100%; } /* Full width */
    .surebet-calculator .btn-group { flex-wrap: wrap; gap: 8px; }
    .surebet-calculator .btn-group .btn { flex: 1 1 100px; /* Allow buttons to share space but wrap */ }
    .surebet-calculator .round-stakes-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* --- Responsive Tables (General) --- */
    .responsive-table thead { display: none; }
    .responsive-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
        padding: 10px; /* Padding inside the "card" */
    }
    .responsive-table td {
        display: flex; /* Use flex for label and value alignment */
        justify-content: space-between; /* Label on left, value on right */
        align-items: center;
        padding: 8px 0; /* Vertical padding, no horizontal as it's handled by flex */
        text-align: right !important; /* Keep value aligned right */
        border-bottom: 1px solid var(--border-color);
        white-space: normal; /* Allow text to wrap */
    }
    .responsive-table td:last-child { border-bottom: none; }
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: 600; /* Make label bolder */
        text-align: left !important;
        color: var(--text-secondary);
        text-transform: uppercase;
        font-size: 0.8rem;
        margin-right: 10px; /* Space between label and value */
        flex-shrink: 0; /* Prevent label from shrinking */
    }

    /* --- Admin Panel Buttons --- */
    .admin-actions-list { flex-direction: column; }
    .admin-actions-list .btn { text-align: center; width: 100%; }

    .btn-block-mobile { display: block; width: 100%; }

    /* --- Modern Filter Bar on Mobile --- */
    .filter-bar-modern, .filter-bar {
        padding: 1rem;
        border-radius: 12px; /* Softer radius for mobile */
        margin-bottom: 15px;
        /* position: sticky; top: var(--header-height); z-index: 998; Optional: sticky filter bar */
    }
    .filter-bar-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .filter-bar label.filter-label {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 1rem;
    }
    #bookmaker-checkboxes, #bkcount-checkboxes {
        padding: 10px;
        justify-content: flex-start; /* Align items to start */
        border-radius: 12px; /* Match parent */
        gap: 8px; /* Reduce gap */
    }
    #bookmaker-checkboxes label, #bkcount-checkboxes label {
        margin-right: 0; /* Remove margin, use gap from parent */
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    #bookmaker-checkboxes input[type="checkbox"], 
    #bkcount-checkboxes input[type="checkbox"] {
        width: 20px; height: 20px;
    }

    /* --- Legal Pages on Mobile --- */
    .legal-page { padding: 1.5rem; }
    .legal-page .page-title { font-size: 1.75rem; }
    .privacy-content { padding: 0; /* Padding is on .legal-page */ }
    .privacy-content h3 { font-size: 1.3rem; }

    /* === LOGIN FORMS RESPONSIVE (TABLET) === */
    /* Legacy Auth Form */
    .auth-form-container {
        max-width: 90%;
        padding: 3rem 2.5rem;
        min-height: auto; /* Allow shrinking */
    }
    .auth-form .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .auth-form .form-group { margin-bottom: 1.5rem !important; }
    .auth-form label { font-size: 1rem; margin-bottom: 0.5rem; }
    .auth-form .form-control { padding: 1rem 1.2rem; font-size: 1rem; border-radius: 10px; min-height: 50px; }
    .auth-form .btn-primary { font-size: 1rem; padding: 1rem 0; border-radius: 10px; margin-bottom: 1.5rem; min-height: 55px; }
    .auth-form .small-link { font-size: 0.9rem; }
    .auth-form .form-check { margin-bottom: 25px; }
    .auth-form .form-check-input { width: 17px; height: 17px; margin-right: 8px; }
    .auth-form .form-check-label { font-size: 0.9rem; }

    /* Modern Login Form */
    .login-form {
        padding: 2.5rem 2rem;
        max-width: 90%;
        min-height: auto; /* Allow shrinking */
    }
    .login-form h2 { font-size: 2rem; margin-bottom: 1.5rem; }
    .login-form .form-group { margin-bottom: 1.5rem; }
    .login-form label { font-size: 1rem; margin-bottom: 0.5rem; }
    .login-form input[type="email"], .login-form input[type="password"] {
        padding: 1rem 1.2rem; font-size: 1rem; border-radius: 10px; min-height: 50px;
    }
    .login-form .btn-primary { padding: 1rem; font-size: 1rem; border-radius: 10px; margin-bottom: 1.5rem; min-height: 55px;}
    .login-form .forgot-password a, .login-form .register-link { font-size: 0.9rem; }
    .login-form .error-message, .login-form .success-message { font-size: 0.9rem; padding: 0.8rem 1rem; }

    #sport-checkboxes {
        padding: 10px;
        justify-content: flex-start;
        border-radius: 12px;
        gap: 8px;
    }

    .sport-label {
        margin-right: 0;
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .sport-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}


/* === Mobile-Optimized Surebets List (Dark Theme Card Layout) === */
/* This section activates when .surebet-horizontal-list-mobile is displayed */
@media (max-width: 768px) {
    /* Hide desktop list, show mobile list */
    .surebet-horizontal-list-desktop { display: none !important; }
    .surebet-horizontal-list-mobile { display: block !important; padding: 0.5rem; }

    /* Hide old mobile row structure if new card is used exclusively */
    .surebet-horizontal-list-mobile .surebet-horizontal-row { display: none !important; }

    .surebet-mobile-card {
        display: block !important; /* Ensure it's block if previously grid/flex */
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        margin: 1rem 0;
        padding: 1rem;
        box-shadow: var(--shadow-sm); /* Softer shadow for mobile cards */
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .surebet-mobile-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: var(--accent-blue);
    }

    /* Mobile Card Header: Sport icon, label, profit, time */
    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* Align items to top for multiline content */
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }
    .sport-info { display: flex; align-items: center; gap: 0.5rem; }
    .sport-icon { /* Wrapper for sport icon (FontAwesome or image) */
        display: flex; align-items: center; justify-content: center;
        width: 32px; height: 32px; border-radius: 50%;
        background: rgba(var(--accent-blue-rgb), 0.1);
    }
    .sport-icon i { font-size: 1.2rem; color: var(--accent-blue); } /* FA icon */
    .sport-img-icon { width: 24px; height: 24px; object-fit: contain; } /* Image icon */
    .sport-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

    .profit-and-time { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
    .profit-display span {
        background: linear-gradient(135deg, var(--accent-green), #22c55e);
        color: white; padding: 4px 8px; border-radius: 6px;
        font-size: 0.9rem; font-weight: 600;
    }
    .time-display { display: flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; color: var(--text-secondary); }
    .time-display .time { font-weight: 500; }

    /* Mobile Card Event: Teams, Tournament */
    .mobile-card-event { margin-bottom: 1rem; }
    .mobile-card-event .event-teams {
        font-size: 1.05rem; /* Slightly larger for readability */
        font-weight: 600; color: var(--text-primary);
        line-height: 1.3; margin-bottom: 0.25rem;
    }
    .mobile-card-event .event-tournament { font-size: 0.85rem; color: #bfc9d1; }

    /* Mobile Card Bets: List of bet options */
    .mobile-card-bets { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
    .bet-option { /* Each bet leg */
        display: grid;
        grid-template-columns: auto 1fr auto; /* Bookie logo, Market, Odds */
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
        background: rgba(var(--accent-blue-rgb), 0.03); /* Very subtle background */
        border: 1px solid rgba(var(--border-color-rgb), 0.5);
        border-radius: 8px;
        transition: background 0.2s ease, border-color 0.2s ease;
    }
    .bet-option:hover {
        background: rgba(var(--accent-blue-rgb), 0.06);
        border-color: var(--accent-blue);
    }
    .bookmaker-section { display: flex; align-items: center; }
    .bookmaker-section .bookmaker-logo {
        height: 24px !important;
        max-height: 24px !important;
        width: auto !important;
        max-width: 80px !important;
        object-fit: contain !important;
    }

    .market-section { text-align: left; }
    .market-section .main-bet { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); display: block; }
    .market-section .period-info { font-size: 0.8rem; color: var(--text-secondary); display: block; margin-top: 0.1rem; }

    .odds-section { text-align: right; display: flex; align-items: center; justify-content: flex-end; }
    .odds-section .odds-value {
        font-size: 1.05rem; /* Slightly larger odds */
        font-weight: 700; color: var(--accent-blue);
        background: rgba(var(--accent-blue-rgb), 0.1);
        padding: 4px 8px; border-radius: 6px;
    }
    .odds-section .surebet-plus-btn { margin-left: 0.5rem; } /* Spacing for calc button */

    /* Mobile Card Actions: Calculator button */
    .mobile-card-actions {
        display: flex; justify-content: center; /* Center button */
        padding-top: 0.75rem; border-top: 1px solid var(--border-color);
    }
    .surebet-calc-btn { /* Main calculator button for the card */
        background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
        color: white; border: none; padding: 0.75rem 1.5rem;
        border-radius: 8px; font-size: 0.9rem; font-weight: 600;
        cursor: pointer; transition: all 0.2s ease;
        display: inline-flex; align-items: center; gap: 0.5rem;
    }
    .surebet-calc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(var(--accent-blue-rgb), 0.3); }
    .surebet-calc-btn i { font-size: 0.9rem; }

    /* Ensure mobile cards are properly displayed when not filtered out by JS */
    .surebet-mobile-card:not([style*="display: none"]) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    /* Hide rows that are filtered out by JS */
    .surebet-mobile-card[style*="display: none"],
    .surebet-horizontal-list-desktop .surebet-horizontal-row[style*="display: none"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}


/* ===== SMALL MOBILE DEVICES (e.g., max-width: 480px) ===== */
@media (max-width: 480px) {
    :root { --base-font-size: 14px; } /* Even smaller base for tiny screens */
    h2.page-title { font-size: 1.6rem; }
    .header-actions { gap: 8px; } /* Reduce gap */
    .dashboard-grid { gap: 15px; }
    .widget { padding: 15px; }
    .widget-icon { margin-right: 15px; min-width: 50px; height: 50px; font-size: 1.5rem; }
    .stat-value { font-size: 1.8rem; }

    /* --- Enhanced Auth Forms for Small Mobile --- */
    .auth-form-container, .login-form {
        max-width: 95%;
        margin-left: auto; margin-right: auto;
        padding: 2rem 1.5rem; /* Reduced padding */
        border-radius: 15px;
    }
    .auth-form .section-subtitle, .login-form h2 {
        font-size: 1.5rem; /* Title size */
        margin-bottom: 1.5rem;
    }
    .auth-form label, .login-form label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    .auth-form .form-control, .login-form input[type="email"], .login-form input[type="password"] {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
        min-height: 45px;
    }
    .auth-form .btn-primary, .login-form .btn-primary {
        font-size: 0.95rem;
        padding: 0.9rem 0;
        border-radius: 8px;
        min-height: 50px;
    }
    .auth-form .small-link, .login-form .forgot-password a, .login-form .register-link {
        font-size: 0.85rem;
    }
    .auth-form .form-check-input { width: 16px; height: 16px; }
    .auth-form .form-check-label { font-size: 0.85rem; }
    .login-form .close-modal-btn { top: 1rem; right: 1rem; font-size: 1.5rem; width: 32px; height: 32px; }
    .login-form .error-message, .login-form .success-message { padding: 0.7rem 0.9rem; font-size: 0.85rem; }


    /* --- Payment Details Modal on Small Mobile --- */
    .payment-details { padding: 12px 10px; font-size: 0.95em; }
    .payment-details p { margin-bottom: 10px; }
    #modalIban, #modalPaymentCode { font-size: 1em; padding: 4px 8px; }
    .important-note { padding: 10px; font-size: 0.9em;}
    .modal-footer .btn.payment-confirm-btn { font-size: 0.95em; padding: 10px 0; }

    /* --- Legal Pages on Small Mobile --- */
    .legal-page { padding: 1rem; }
    .legal-page .page-title {
        font-size: 1.5rem;
        flex-direction: column; /* Stack icon and title */
        align-items: flex-start;
        gap: 0.5rem;
    }
    .privacy-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
    .privacy-content ul { padding-left: 20px; } /* Ensure bullets are visible */
    .privacy-content p, .privacy-content ul li { font-size: 0.9rem; }

    /* --- Surebets Mobile Card Refinements for Small Screens --- */
    .surebet-mobile-card { margin: 0.75rem 0; padding: 0.75rem; }
    .mobile-card-header { margin-bottom: 0.75rem; padding-bottom: 0.5rem; }
    .sport-icon { width: 28px; height: 28px; }
    .sport-icon i { font-size: 1rem; }
    .mobile-card-event .event-teams { font-size: 0.95rem; }
    .bet-option { gap: 0.5rem; padding: 0.5rem; }
    .market-section .main-bet { font-size: 0.9rem; }
    .odds-section .odds-value { font-size: 1rem; padding: 3px 6px; }
    .surebet-calc-btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}

/* Landscape orientation on mobile devices - for modals mostly */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .modal {
        padding: 5px; /* Minimal padding */
        align-items: flex-start; /* Align modal to top */
        padding-top: 10px; /* Small top padding */
    }
    .modal-content, #surebet-calc-modal .modal-content {
        max-height: 95vh; /* Allow more height */
        margin-top: 0; /* Remove auto margin if it pushes down */
    }
}

/* High DPI displays - minor enhancement */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .modal-content {
        box-shadow: var(--shadow-lg); /* Ensure high-quality shadow */
    }
}


/* ==========================================================================
   7. PRINT STYLES
   ========================================================================== */
@media print {
    .sidebar, .main-header, .mobile-menu-toggle, .header-actions, .filters-toolbar, .filter-bar {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
        background-color: white !important;
    }
    .content-page {
        display: block !important;
        padding: 0 !important;
        animation: none !important;
    }
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt; /* Standard print font size */
    }
    a { color: #0000EE; text-decoration: underline; } /* Standard link color for print */
    h1, h2, h3, h4, h5, h6 { color: black !important; }
    .widget, .card-bg, .medium-bg, .dark-bg { background-color: white !important; border: 1px solid #ccc; }
    .text-primary, .text-secondary, .text-headings { color: black !important; }
    /* Add more print-specific styles as needed */
}

/* Enhanced Input States for Validation */
.login-form input.error {
    border-color: var(--danger-red) !important;
    box-shadow: 0 0 0 3px rgba(var(--danger-red-rgb), 0.15) !important;
    background-color: rgba(var(--danger-red-rgb), 0.05);
}

.login-form input.success {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 0 3px rgba(var(--accent-green-rgb), 0.15) !important;
    background-color: rgba(var(--accent-green-rgb), 0.05);
}

/* Field Error Messages */
.field-error {
    color: var(--danger-red);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Focus States with Better Animations */
.login-form .form-group.focused label {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.login-form .form-group.filled label {
    color: var(--accent-green);
}

/* Enhanced Password Strength with Better Visual Feedback */
.password-strength {
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--input-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.3rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--danger-red);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Button Loading Animation */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.8;
    position: relative;
    overflow: hidden;
}

.btn-auth.loading .btn-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-auth.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loadingShine 1.5s infinite;
}

@keyframes loadingShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Modal Animations */
.modal[style*="display: block"] .modal-content,
.modal.show .modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Improved Checkbox Animations */
.modern-checkbox .form-check-input:checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
    transform: scale(1.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-checkbox .form-check-input:checked::after {
    animation: checkmarkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(45deg);
        opacity: 1;
    }
}

.remember-me input[type="checkbox"]:checked {
    transform: scale(1.05);
    animation: checkboxBounce 0.3s ease;
}

@keyframes checkboxBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Form Divider */
.form-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.form-divider::before {
  content: '';
  position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.form-divider span {
    background: var(--medium-bg);
    color: var(--text-secondary);
    padding: 0 1rem;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Focus Border Enhancement */
.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 10px 10px;
}

.login-form input:focus + .input-focus-border {
    width: 100%;
}

/* Enhanced Auth Messages with Icons */
.auth-error,
.auth-success {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    animation: slideInMessage 0.4s ease;
    border: 1px solid;
    backdrop-filter: blur(5px);
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-error {
    background: linear-gradient(135deg, rgba(var(--danger-red-rgb), 0.1), rgba(var(--danger-red-rgb), 0.05));
    color: var(--danger-red);
    border-color: rgba(var(--danger-red-rgb), 0.3);
}

.auth-error::before {
    content: '\f071';
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.auth-success {
    background: linear-gradient(135deg, rgba(var(--accent-green-rgb), 0.1), rgba(var(--accent-green-rgb), 0.05));
    color: var(--accent-green);
    border-color: rgba(var(--accent-green-rgb), 0.3);
}

.auth-success::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Improved Close Button */
#login-modal .close-modal-btn,
#register-modal .close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#login-modal .close-modal-btn:hover,
#register-modal .close-modal-btn:hover {
    background: rgba(var(--danger-red-rgb), 0.8);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(var(--danger-red-rgb), 0.3);
}

/* Enhanced Mobile Responsiveness for New Features */
@media (max-width: 768px) {
    .field-error {
        font-size: 0.75rem;
        margin-top: 0.2rem;
    }
    
    .password-strength {
        margin-top: 0.4rem;
    }
    
    .strength-bar {
        height: 3px;
    }
    
    .form-divider {
        margin: 1.2rem 0;
    }
    
    .form-divider span {
        font-size: 0.8rem;
        padding: 0 0.8rem;
    }
}

@media (max-width: 480px) {
    .auth-error,
    .auth-success {
        padding: 0.8rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .auth-error::before,
    .auth-success::before {
    font-size: 0.9rem;
}

    #login-modal .close-modal-btn,
    #register-modal .close-modal-btn {
        width: 35px;
        height: 35px;
        top: 0.8rem;
        right: 0.8rem;
        font-size: 1.1rem;
    }
    
    .field-error {
        font-size: 0.7rem;
    }
}

.sh-col.event, .surebet-horizontal-header .sh-col.event, .event-info, .event-teams, .event-tournament {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100%;
}

/* Športový filter dedí štýly z bookmaker-label */
.sport-label {
  /* žiadne špeciálne štýly, dedí z .bookmaker-label */
}

/* Ikona alebo obrázok v športovom labeli */
.sport-label .sport-img-icon,
.bookmaker-label .sport-img-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sport-label i,
.bookmaker-label i {
  font-size: 1em;
  margin-right: 6px;
  width: 18px;
        text-align: center;
  vertical-align: middle;
}

/* Ak je zaškrtnutý, použije sa rovnaký štýl ako bookmaker-checkbox */
#sport-checkboxes input[type="checkbox"]:checked + img,
#sport-checkboxes input[type="checkbox"]:checked + i {
  filter: drop-shadow(0 0 2px #22c55e) brightness(1.1);
}

/* Zabezpečím, že .sport-label má rovnaký padding, border, background, atď. ako .bookmaker-label */
.sport-label,
.bookmaker-label {
  display: inline-flex;
        align-items: center;
  gap: 6px;
        font-size: 1rem;
  color: #e2e8f0;
  cursor: pointer;
  border: 1.5px solid #2563eb;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f292e 60%, #26313a 100%);
  padding: 6px 18px 6px 12px;
  margin-bottom: 6px;
  font-weight: 600;
  box-shadow: 0 1.5px 8px rgba(62,198,255,0.07);
  transition: border 0.18s, box-shadow 0.18s, color 0.18s;
}
.sport-label input[type="checkbox"],
.bookmaker-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  accent-color: #22c55e;
}
.sport-label:hover,
.bookmaker-label:hover {
  border-color: #22c55e;
  color: #fff;
}
.sport-label input[type="checkbox"]:checked ~ span,
.bookmaker-label input[type="checkbox"]:checked ~ span {
  color: #fff;
}

/* ===== ZOOM AND RESPONSIVE IMPROVEMENTS FOR SUREBETS ===== */

/* Better responsive grid layout for surebet table */
.surebet-horizontal-header, 
.surebet-horizontal-list-desktop .surebet-horizontal-row {
    display: grid;
    grid-template-columns: 
        minmax(50px, 0.8fr)     /* icon-col */
        minmax(80px, 1.2fr)     /* bookmaker */
        minmax(150px, 2fr)      /* event */
        minmax(100px, 1.5fr)    /* market */
        minmax(60px, 0.8fr)     /* odds */
        minmax(60px, 0.8fr)     /* time */
        minmax(80px, 1fr);      /* profit */
    gap: 8px;
    align-items: center;
}

/* Fix profit column overflow and button positioning */
.sh-col.profit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0; /* Allow shrinking */
}

.sh-col.profit .sh-prong-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    flex-wrap: wrap;
}

/* Smaller + button for better fit */
.surebet-plus-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.9em !important;
    margin-left: 4px !important;
    flex-shrink: 0; /* Prevent button from shrinking */
}

/* Better text wrapping and overflow handling */
.sh-col {
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
    min-width: 0;
}

.event-teams, .event-tournament {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-col.market {
    min-width: 0;
}

.sh-col.market .main-bet,
.sh-col.market .period-info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Zoom-specific adjustments */
@media screen and (min-resolution: 1.25dppx) {
    .sh-col {
        font-size: 0.9rem;
        padding: 8px 6px;
    }
    
    .surebet-plus-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.8em !important;
    }
}

@media screen and (min-resolution: 1.5dppx) {
    .sh-col {
        font-size: 0.85rem;
        padding: 6px 4px;
    }
    
    .surebet-horizontal-header, 
    .surebet-horizontal-list-desktop .surebet-horizontal-row {
        grid-template-columns: 
            minmax(45px, 0.7fr)     /* icon-col */
            minmax(75px, 1fr)       /* bookmaker */
            minmax(140px, 1.8fr)    /* event */
            minmax(90px, 1.3fr)     /* market */
            minmax(55px, 0.7fr)     /* odds */
            minmax(55px, 0.7fr)     /* time */
            minmax(75px, 0.9fr);    /* profit */
        gap: 6px;
    }
    
    .surebet-plus-btn {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.7em !important;
        margin-left: 2px !important;
    }
    
    .sh-sport-label-inline {
        font-size: 0.75rem;
    }
    
    .bookmaker-logo {
        max-height: 20px;
        max-width: 60px;
    }
}

@media screen and (min-resolution: 2dppx) {
    .sh-col {
        font-size: 0.8rem;
        padding: 4px 3px;
    }
    
    .surebet-horizontal-header, 
    .surebet-horizontal-list-desktop .surebet-horizontal-row {
        grid-template-columns: 
            minmax(40px, 0.6fr)     /* icon-col */
            minmax(70px, 0.9fr)     /* bookmaker */
            minmax(130px, 1.6fr)    /* event */
            minmax(80px, 1.2fr)     /* market */
            minmax(50px, 0.6fr)     /* odds */
            minmax(50px, 0.6fr)     /* time */
            minmax(70px, 0.8fr);    /* profit */
        gap: 4px;
    }
    
    .surebet-plus-btn {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.6em !important;
        margin-left: 2px !important;
    }
    
    .sh-sport-label-inline {
        display: none; /* Hide sport labels at high zoom */
    }
    
    .bookmaker-logo {
        max-height: 18px;
        max-width: 50px;
    }
    
    .event-teams {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .event-tournament {
        font-size: 0.7rem;
        color: #bfc9d1;
    }
    
    .sh-col.market .main-bet {
        font-size: 0.85em;
    }
    
    .sh-col.market .period-info {
        font-size: 0.75em;
    }
}

/* Responsive adjustments for smaller screens with zoom */
@media (max-width: 1200px) {
    .surebet-horizontal-header, 
    .surebet-horizontal-list-desktop .surebet-horizontal-row {
        grid-template-columns: 
            minmax(40px, 0.6fr)     /* icon-col */
            minmax(70px, 1fr)       /* bookmaker */
            minmax(120px, 1.5fr)    /* event */
            minmax(90px, 1.2fr)     /* market */
            minmax(50px, 0.7fr)     /* odds */
            minmax(50px, 0.7fr)     /* time */
            minmax(70px, 0.8fr);    /* profit */
        gap: 6px;
    }
    
    .sh-sport-label-inline {
        display: none; /* Hide sport labels on smaller screens */
    }
}

@media (max-width: 1000px) {
    .surebet-horizontal-header, 
    .surebet-horizontal-list-desktop .surebet-horizontal-row {
        grid-template-columns: 
            minmax(35px, 0.5fr)     /* icon-col */
            minmax(65px, 0.9fr)     /* bookmaker */
            minmax(110px, 1.4fr)    /* event */
            minmax(80px, 1.1fr)     /* market */
            minmax(45px, 0.6fr)     /* odds */
            minmax(45px, 0.6fr)     /* time */
            minmax(65px, 0.7fr);    /* profit */
        gap: 4px;
    }
    
    .sh-col {
        font-size: 0.85rem;
        padding: 6px 3px;
    }
}

/* Improved mobile breakpoint */
@media (max-width: 992px) {
    .surebet-horizontal-list-desktop {
        display: none !important;
    }
    
    .surebet-horizontal-list-mobile {
        display: block !important;
    }
}

/* Sidebar hidden state */
.sidebar-hidden {
    display: none !important;
}

/* Show sidebar button (when sidebar is hidden) */
.sidebar-show-btn {
    position: fixed;
    top: 30px;
    left: 0;
    z-index: 1100;
    background: var(--medium-bg);
    color: var(--text-primary);
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    font-size: 1.3em;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: left 0.3s;
    display: none;
}

.sidebar-hidden ~ .sidebar-show-btn {
    display: block;
}

.sidebar-collapsed .main-content {
    margin-left: 0 !important;
    transition: margin-left 0.3s;
}

.sidebar-collapsed .main-header {
    left: 0 !important;
    transition: left 0.3s;
}

.sh-col.market {
    font-weight: 500; color: var(--accent-blue);
    overflow: visible; /* Ensure tooltip inside market column is not clipped */
    position: relative; /* Establish new stacking context for tooltip */
}

/* ========================================================================== */
/* 8. ADMIN IP LOGS DASHBOARD                                                */
/*    Scoped styles that apply only inside <section id="admin-ip-logs">     */
/* ========================================================================== */

#admin-ip-logs {
    /* Local design tokens */
    --primary-color: #4f46e5; /* Indigo */
    --secondary-color: #7c3aed; /* Violet */
    --primary-rgb: 79, 70, 229;
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--card-bg);
    --bg-tertiary: var(--light-bg);
    --text-primary-local: var(--text-primary);
    --text-secondary-local: var(--text-secondary);
    --border-color-local: var(--border-color);
}

/* ---------- Layout Containers ---------- */
#admin-ip-logs .ip-logs-container {
    background: var(--bg-primary);
    min-height: 100vh;
    padding: var(--page-container-padding);
    font-family: var(--font-body);
    color: var(--text-primary-local);
}

#admin-ip-logs .logs-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

#admin-ip-logs .admin-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

#admin-ip-logs .admin-info-card {
    background: var(--medium-bg);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color-local);
}

/* ---------- Filters Panel ---------- */
#admin-ip-logs .filters-panel {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color-local);
}

#admin-ip-logs .filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#admin-ip-logs .filter-group label {
    font-weight: 600;
    color: var(--text-primary-local);
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
}

#admin-ip-logs .filter-group select,
#admin-ip-logs .filter-group input[type="text"],
#admin-ip-logs .filter-group input[type="date"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color-local);
    border-radius: 0.5rem;
    background: var(--input-bg);
    color: var(--text-primary-local);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

#admin-ip-logs .filter-group select:focus,
#admin-ip-logs .filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

/* ---------- Stat Cards ---------- */
#admin-ip-logs .stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

#admin-ip-logs .stat-card {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color-local);
    transition: transform 0.2s ease;
}

#admin-ip-logs .stat-card:hover {
    transform: translateY(-4px);
}

#admin-ip-logs .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

#admin-ip-logs .stat-label {
    color: var(--text-secondary-local);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ---------- Logs Table ---------- */
#admin-ip-logs .logs-table-container {
    background: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color-local);
}

#admin-ip-logs .logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: var(--text-primary-local);
}

#admin-ip-logs .logs-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 1rem 0.75rem;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

#admin-ip-logs .logs-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color-local);
    vertical-align: top;
}

#admin-ip-logs .logs-table tr:hover {
    background: var(--bg-tertiary);
}

#admin-ip-logs .timestamp {
    color: var(--primary-color);
    font-weight: 600;
    font-family: "Courier New", monospace;
}

#admin-ip-logs .ip-address {
    color: var(--accent-green);
    font-weight: 600;
    font-family: "Courier New", monospace;
}

/* ---------- Badges & States ---------- */
#admin-ip-logs .new-ip-badge {
    background: var(--accent-green);
    color: #fff;
    padding: 2px 6px;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
    animation: ip-new-pulse 2s infinite;
}

@keyframes ip-new-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(var(--accent-green-rgb), 0.3); transform: scale(1); }
    50%       { box-shadow: 0 0 12px rgba(var(--accent-green-rgb), 0.6); transform: scale(1.05); }
}

#admin-ip-logs .unauthorized-row {
    background: linear-gradient(135deg, rgba(var(--warning-orange-rgb),0.25) 0%, rgba(var(--warning-orange-rgb),0.15) 100%) !important;
    border-left: 4px solid var(--warning-orange) !important;
}

#admin-ip-logs .unauthorized-badge {
    background: var(--warning-orange);
    color: #fff;
    padding: 2px 6px;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

/* ---------- HTTP Method Pills ---------- */
#admin-ip-logs .method-badge {
    padding: 4px 8px;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

#admin-ip-logs .method-get     { background: rgba(var(--accent-green-rgb), 0.15);   color: var(--accent-green);   }
#admin-ip-logs .method-post    { background: rgba(var(--warning-orange-rgb), 0.20); color: var(--warning-orange); }
#admin-ip-logs .method-put     { background: rgba(var(--accent-blue-rgb), 0.20);    color: var(--accent-blue);    }
#admin-ip-logs .method-delete  { background: rgba(var(--danger-red-rgb), 0.20);     color: var(--danger-red);     }

/* ---------- Responsive Enhancements ---------- */
@media (max-width: 768px) {
    #admin-ip-logs .logs-table-container { overflow-x: auto; }
    #admin-ip-logs .filters-grid        { grid-template-columns: 1fr; }
    #admin-ip-logs .controls-row        { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    #admin-ip-logs .btn-group           { justify-content: center; }
}

#admin-ip-logs .controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color-local);
}

#admin-ip-logs .browser-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#admin-ip-logs .referrer-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}
#admin-ip-logs .referrer-link:hover {
    text-decoration: underline;
    color: var(--primary-blue);
}

#admin-ip-logs .user-agent-text {
    font-family: "Courier New", monospace;
    font-size: 0.75rem;
    color: var(--text-secondary-local);
    max-width: 300px;
    word-break: break-all;
    line-height: 1.4;
}

#admin-ip-logs .unauthorized-ip {
    color: var(--warning-orange) !important;
    font-weight: 700 !important;
}
#admin-ip-logs .unauthorized-status {
    background: rgba(var(--warning-orange-rgb), 0.15) !important;
    color: var(--warning-orange) !important;
    border: 1px solid rgba(var(--warning-orange-rgb), 0.35) !important;
}
#admin-ip-logs .unauthorized-page {
    background: rgba(var(--warning-orange-rgb), 0.20) !important;
    color: var(--warning-orange) !important;
    border: 1px solid rgba(var(--warning-orange-rgb), 0.35) !important;
    font-weight: 700 !important;
}
#admin-ip-logs .unauthorized-method {
    background: var(--warning-orange) !important;
    color: #fff !important;
    border: 2px solid #856404 !important;
}

#admin-ip-logs .active-filters {
    background: rgba(var(--accent-blue-rgb), 0.15);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(var(--accent-blue-rgb), 0.35);
}
#admin-ip-logs .filter-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 1rem;
    font-size: 0.75rem;
    margin: 2px;
    font-weight: 500;
}

#admin-ip-logs .page-name.client-page {
    background: rgba(var(--accent-green-rgb), 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(var(--accent-green-rgb), 0.35);
    font-weight: 600;
}

#admin-ip-logs .page-name.admin-page {
    background: rgba(var(--danger-red-rgb), 0.15);
    color: var(--danger-red);
    border: 1px solid rgba(var(--danger-red-rgb), 0.35);
    font-weight: 600;
}

#admin-ip-logs .page-name.unauthorized-page {
    background: rgba(var(--warning-orange-rgb), 0.20);
    color: var(--warning-orange);
    border: 1px solid rgba(var(--warning-orange-rgb), 0.35);
    font-weight: 700;
}

/* Adjust unauthorized row & badge colours to yellow */
#admin-ip-logs .unauthorized-row {
    background: linear-gradient(135deg, rgba(var(--warning-orange-rgb),0.25) 0%, rgba(var(--warning-orange-rgb),0.15) 100%) !important;
    border-left: 4px solid var(--warning-orange) !important;
}

#admin-ip-logs .unauthorized-badge {
    background: var(--warning-orange);
    color: #fff;
    padding: 2px 6px;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

#admin-ip-logs .unauthorized-ip {
    color: var(--warning-orange) !important;
}
#admin-ip-logs .unauthorized-status {
    background: rgba(var(--warning-orange-rgb), 0.15) !important;
    color: var(--warning-orange) !important;
    border: 1px solid rgba(var(--warning-orange-rgb), 0.35) !important;
}
#admin-ip-logs .unauthorized-method {
    background: var(--warning-orange) !important;
    color: #fff !important;
    border: 2px solid #856404 !important;
}

/* Hide legacy calculator results summary */
.surebet-calculator #calculator-results {
    display: none !important;
}

.simple-table .bookmaker-logo {
    height: 24px !important;
    max-height: 24px !important;
    width: auto !important;
    max-width: 80px !important;
    object-fit: contain !important;
}