@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700&display=swap');
@import url('colors.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    position: relative;
    background-color: var(--bg-main);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
}

/* Header Section */
header {
    background-color: var(--bg-sidebar);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    min-height: 72px;
    display: flex;
    align-items: center;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-container.full-width {
    max-width: none;
    padding: 0 2rem;
    margin: 0;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-on-dark);
}

.full-width .logo-link {
    padding-left: 0.5rem;
}

.logo-image {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--primary); /* Fallback */
}

.logo-text {
    font-family: 'Outfit';
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

/* Header Navigations Section */
.header-navigations {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.header-navigations a, .header-nav-link {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.header-navigations a:hover, .header-nav-link:hover {
    color: var(--primary);
    opacity: 1;
}

/* Dropdown Navigation */
.header-navigations li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    min-width: 200px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    list-style: none;
    display: none;
    z-index: 1000;
    border: 1px solid var(--border);
}

.dropdown-menu li a {
    color: var(--secondary) !important;
    padding: 0.6rem 1rem;
    display: block;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: rgba(255,107,0,0.05);
    color: var(--primary) !important;
}

.header-navigations li:hover .dropdown-menu {
    display: block;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

.auth-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: #fff !important;
    border-radius: 4px;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.auth-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Main Section */
main {
    min-height: calc(100vh - 72px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Dashboard Sidebar & Core Layout */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 72px);
    transition: var(--transition);
}

.sidebar {
    width: 260px;
    flex-shrink: 0; /* Prevent sidebar from shrinking when content is large */
    background: var(--bg-sidebar);
    height: calc(100vh - 72px);
    position: sticky;
    top: 72px;
    padding: 1.5rem 1rem;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    min-height: 32px;
    overflow: hidden; /* Keep header text clipped */
}

.sidebar-toggle-floating {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
    box-shadow: 4px 0 10px rgba(0,0,0,0.2);
}

.sidebar-toggle-floating:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.sidebar-toggle-floating i,
.sidebar-toggle-floating svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle-floating i,
.sidebar.collapsed .sidebar-toggle-floating svg {
    transform: rotate(180deg);
}

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-heading {
    opacity: 0;
    pointer-events: none;
}

.sidebar-nav-container {
    flex-grow: 1;
    overflow: hidden; /* Prevent text spillover when collapsed */
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar .nav-link i {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar .nav-link.active {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
}

.sidebar.collapsed .nav-link {
    padding: 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar-toggle i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Header Profile Section */
.header-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.1);
    margin-left: 0.5rem;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header-user-info:hover .header-username {
    color: var(--primary);
}

.avatar-header {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.header-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.header-profile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-action-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.header-action-link:hover {
    color: var(--primary);
}

.header-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(220, 38, 38, 0.15);
    color: #ff7676;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-logout-btn:hover {
    background: #DC2626 !important;
    color: white !important;
    border-color: #DC2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.admin-content {
    flex: 1;
    min-width: 0; /* Important for flex child with overflow */
    padding: 2rem;
    background: var(--bg-admin-content);
    min-height: calc(100vh - 72px);
}

@media (max-width: 992px) {
    .admin-content {
        padding: 1.5rem;
    }
    
    .admin-layout {
        flex-direction: column !important;
    }
    
    .sidebar {
        width: 100% !important;
        height: auto !important;
        position: static !important;
        padding: 0.75rem 1rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
        z-index: 99 !important;
        box-shadow: var(--shadow-sm);
    }
    
    .sidebar-header {
        display: none !important;
    }
    
    .sidebar-toggle-floating, .sidebar-heading {
        display: none !important;
    }
    
    .sidebar-nav-container {
        overflow: visible !important;
        width: 100% !important;
    }
    
    .sidebar-nav {
        flex-direction: row !important;
        width: max-content !important;
        gap: 0.5rem !important;
    }
    
    .sidebar .nav-link {
        padding: 0.5rem 0.75rem !important;
    }
    
    .sidebar .nav-link span {
        display: inline !important;
    }
}

@media (max-width: 768px) {
    .header-navigations {
        gap: 1rem;
    }
    .logo-text {
        font-size: 1rem;
    }
    .header-container {
        padding: 0 1rem;
    }
}

/* ==========================================
   RESPONSIVE LAYOUTS & GRID UTILITIES
   ========================================== */
.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.grid-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

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

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-3-col-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.live-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 1.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Mobile Toggle Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-on-dark);
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    transition: var(--transition);
}

.mobile-menu-toggle i,
.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

.mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-only {
        display: block !important;
    }
    
    .border-top-mobile {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .mobile-profile-info {
        padding: 0.5rem 1rem;
        color: var(--text-muted);
        font-size: 0.875rem;
    }
    
    .mobile-profile-name {
        font-weight: 600;
        color: white;
    }

    .admin-content {
        padding: 1.5rem;
    }

    .grid-2-1,
    .grid-1-2,
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 0 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-navigations {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-sidebar);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        align-items: stretch;
    }
    
    .header-container.mobile-menu-active .header-navigations {
        display: flex;
        animation: slideDownMenu 0.25s ease-out forwards;
    }
    
    .header-navigations li {
        width: 100%;
    }
    
    .header-navigations a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.02);
    }
    
    .header-navigations a:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        display: none;
        padding-left: 1rem;
    }
    
    .header-navigations li:hover .dropdown-menu {
        display: block;
        animation: none;
    }
    
    .header-actions {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .header-username, 
    .header-profile-actions,
    .header-actions > .header-nav-link {
        display: none !important;
    }
    
    .header-profile {
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .hero-section {
        padding: 2rem 1rem !important;
        text-align: center !important;
    }
    
    .grid-3-col,
    .grid-2-col,
    .grid-3-col-small {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem 0.75rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .admin-content {
        padding: 1rem 0.75rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header button, 
    .section-header a {
        width: 100% !important;
        justify-content: center;
    }
    
    /* Scaling down oversized buttons on mobile viewports */
    .btn-primary, .btn-secondary, .btn-danger, .btn-cancel, .btn-auth-submit, .btn-outline-white {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.875rem !important;
        width: auto;
    }
    
    /* Make buttons stack and take full width inside forms/flex-actions */
    .form-group button, 
    .form-group .btn-primary, 
    .form-group .btn-secondary,
    .hero-actions .btn-primary,
    .hero-actions .btn-outline-white {
        width: 100% !important;
        text-align: center;
        display: block !important;
    }
}

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

/* Glassmorphism Cards */
.card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Auth Layout */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-input-focus);
    color: var(--text-heading);
}

.form-control.error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.form-control.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary.btn-danger {
    background-color: #ef4444;
}

.btn-primary.btn-danger:hover {
    background-color: #dc2626;
}

.modal-danger-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-danger-icon {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Admin Dashboard Elements */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 107, 0, 0.05); /* Very transparent primary color */
    transition: width 0.4s ease;
    z-index: 1;
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-card:hover::before {
    width: 100%;
}

.stat-card .label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.05;
    transform: rotate(-15deg);
    transition: all 0.4s ease;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    opacity: 0.1;
    transform: rotate(0deg) scale(1.1);
}

.stat-icon i, .stat-icon svg {
    width: 100px !important;
    height: 100px !important;
}

/* Data Table Styles */
.table-container {
    background: var(--bg-card);
    border-radius: 8px;
    overflow-x: auto; /* Enable horizontal scrolling on mobile */
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Avoid squishing on very small screens */
}

th {
    background: var(--bg-table-header);
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--bg-table-hover);
}
/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-sidebar) 0%, #172554 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Outfit';
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-outline-white {
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255,107,0,0.5);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
}

/* Page Components */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
}

.text-muted {
    color: var(--text-muted);
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tournament-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-banner {
    background: var(--bg-sidebar);
    padding: 1.5rem;
    color: white;
}

.banner-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.season-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.status-pill {
    background: var(--success);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 700;
}

.card-title {
    font-size: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-table-hover);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logo-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    object-fit: cover;
}

.team-name {
    font-weight: 600;
    color: var(--secondary);
}

.view-all-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px dashed var(--border);
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    color: var(--border);
    margin-bottom: 1rem;
}

/* Auth Pages Additional */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255,107,0,0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.auth-icon-wrapper i {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-auth-submit {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.back-link:hover {
    color: var(--primary);
}

/* Admin Specific */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-page-title {
    font-size: 2rem;
    color: var(--secondary);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 10px;
}

.btn-cancel {
    background: var(--text-muted);
    text-decoration: none;
    text-align: center;
}

.team-logo-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-table-header);
}

.team-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name-td {
    font-weight: 700;
    color: var(--secondary);
}

.tournament-info-small {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.action-btn {
    text-decoration: none;
    padding: 4px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-btn-edit {
    color: var(--info);
    background: rgba(37, 99, 235, 0.05);
}

.action-btn-delete {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}

/* Dashboard Specific */
.dashboard-welcome {
    margin-bottom: 2.5rem;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.stat-icon {
    padding: 10px;
    border-radius: 6px;
}

.stat-icon-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.stat-icon-primary {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
}

.stat-icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-trend {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.quick-actions-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 2.5rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: inset 0 0 0 1px var(--primary-glow);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.action-card {
    text-decoration: none;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 107, 0, 0.03);
    transition: width 0.4s ease;
    z-index: 1;
}

.action-card:hover {
    border-color: var(--primary);
}

.action-card:hover::before {
    width: 100%;
}

.action-card i, .action-card svg:not(.bg-icon) {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
}

.action-card .bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 120px;
    height: 120px;
    opacity: 0.04;
    transition: all 0.4s ease;
    z-index: 1;
}

.action-card:hover .bg-icon {
    opacity: 0.08;
    transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
}

.action-card-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
    position: relative;
    z-index: 2;
}

.action-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* Status & Indicators */
.status-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-indicator-active {
    background: var(--success);
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

.dot-indicator-muted {
    background: var(--text-muted);
}

/* Profiles & Avatars */
.user-profile-td {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-wrapper {
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-table-header);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 100px; height: 100px; border-width: 4px; }

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: var(--bg-table-header);
}

.user-name {
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.user-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
}

/* More Badges */
.badge-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--info);
}

.badge-primary {
    background: rgba(194, 65, 12, 0.1);
    color: var(--primary);
}

.badge-generic {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Mixed Layouts */
.form-row-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.link-username {
    color: var(--primary);
    font-weight: 600;
}

/* Global Utilities */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.h-fit { height: fit-content; }

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

.text-center { text-align: center; }
.text-italic { font-style: italic; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }

/* Print Styles */
@media print {
    header, .admin-sidebar, .btn-primary, .auth-btn, .btn-outline-white, .no-print, .hero-actions, .auth-footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        padding: 0 !important;
    }
    
    .container, .admin-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #eee !important;
        margin-bottom: 2rem !important;
        break-inside: avoid;
    }
    
    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    
    th, td {
        border: 1px solid #eee !important;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    text-align: center;
    animation: slideUpModal 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--danger);
}

/* Avatar Edit Badge */
.avatar-edit-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}
.edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.edit-badge:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Delete Modal Styles */
.modal-title-danger {
    color: var(--danger);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.btn-danger {
    background-color: var(--danger);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-danger:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}
.btn-secondary {
    background-color: var(--border);
    color: var(--text-heading);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    background-color: var(--bg-table-header);
    border-color: var(--text-muted);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-title-danger {
    color: var(--danger);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Team Picker & Search Modal */
.team-picker-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.team-picker-field:hover {
    border-color: var(--primary);
    background: var(--bg-input-focus);
}

.team-picker-info {
    flex: 1;
}

.team-picker-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.team-picker-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-main);
}

.search-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.team-list-scroll {
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-right: 0.5rem;
}

.team-option-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.team-option-item:hover {
    background: var(--bg-table-hover);
    border-color: var(--border);
}

.team-option-item.selected {
    background: rgba(194, 65, 12, 0.05);
    border-color: var(--primary);
}

.team-option-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-table-header);
}

.team-option-name {
    font-weight: 600;
    color: var(--secondary);
}

/* ==========================================
   MATCHUP PAGE STYLES
   ========================================== */
.matchup-card {
    padding: 3rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
}

.matchup-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.matchup-team {
    flex: 1;
    text-align: center;
}

.matchup-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--border);
    margin-bottom: 1rem;
    object-fit: cover;
}

.matchup-score-container {
    text-align: center;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .matchup-card {
        padding: 1.5rem !important;
    }
    
    .matchup-header-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .matchup-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }
    
    .matchup-score-container {
        padding: 0;
    }
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(15, 23, 42, 0.55); /* Increased background opacity slightly for visibility */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding: 0 !important;
    outline: none !important;
}

.back-to-top-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn i,
.back-to-top-btn svg {
    width: 26px;
    height: 26px;
    display: block;
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
    .back-to-top-btn i,
    .back-to-top-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================
   STICKY CREATION FORMS (ADMIN PAGES)
   ========================================== */
@media (min-width: 993px) {
    .admin-form-grid > .card:first-child,
    .grid-1-2 > .card:first-child {
        position: sticky;
        top: 92px; /* Positioned below sticky header (72px) with comfortable margin */
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        /* Elegant thin scrollbar styling for webkit & firefox */
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
    }
    
    .admin-form-grid > .card:first-child::-webkit-scrollbar,
    .grid-1-2 > .card:first-child::-webkit-scrollbar {
        width: 6px;
    }
    
    .admin-form-grid > .card:first-child::-webkit-scrollbar-track,
    .grid-1-2 > .card:first-child::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .admin-form-grid > .card:first-child::-webkit-scrollbar-thumb,
    .grid-1-2 > .card:first-child::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.15);
        border-radius: 3px;
    }
    
    .admin-form-grid > .card:first-child::-webkit-scrollbar-thumb:hover,
    .grid-1-2 > .card:first-child::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* ==========================================
   PREMIUM LANDING PAGE STYLES (INDEX.PHP)
   ========================================== */
.hero-section-premium {
    position: relative;
    background: var(--hero-bg);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 4rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.hero-glow-effect {
    position: absolute;
    top: -20%;
    left: 20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(194, 65, 12, 0.15) 0%, transparent 60%);
    pointer-events: none;
    filter: blur(40px);
}

.hero-court-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.8;
}

.hero-title-premium {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, #ffffff 40%, #fed7aa 70%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.15;
}

.hero-subtitle-premium {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Premium Buttons */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #a23508 100%);
    color: white !important;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(194, 65, 12, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(194, 65, 12, 0.5);
    background: linear-gradient(135deg, #e05316 0%, var(--primary) 100%);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero-btn-primary i, .hero-btn-secondary i {
    width: 18px;
    height: 18px;
}

/* Premium News Cards */
.news-card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px !important;
    padding: 2rem !important;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.news-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff8233 100%);
    transition: height 0.3s ease;
}

.news-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
    border-color: rgba(255, 107, 0, 0.2);
}

.news-card-premium:hover::before {
    height: 6px;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(194, 65, 12, 0.08);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: fit-content;
    text-transform: uppercase;
}

.news-card-title {
    font-size: 1.35rem;
    color: var(--secondary);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.news-card-desc {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.65;
    margin: 0;
}

.news-readmore-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-readmore-link:hover {
    color: var(--primary-dark);
}

/* About Showcase Block */
.about-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.about-showcase::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(194, 65, 12, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.showcase-badge {
    background: rgba(194, 65, 12, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.about-showcase-title {
    font-size: 2.25rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.about-showcase-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

.btn-premium-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: white !important;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.btn-premium-pill:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(194, 65, 12, 0.3);
}

@media (max-width: 768px) {
    .hero-section-premium {
        padding: 3.5rem 1.5rem !important;
        border-radius: 16px;
    }
    
    .hero-title-premium {
        font-size: 2.25rem !important;
    }
    
    .hero-subtitle-premium {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-btn-primary, .hero-btn-secondary {
        width: 100% !important;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }
    
    .about-showcase {
        padding: 3rem 1.5rem;
        border-radius: 16px;
    }
    
    .about-showcase-title {
        font-size: 1.75rem;
    }
}

/* ==========================================
/* ==========================================================================
   DYNAMIC THEME STYLING ADAPTATIONS
   ========================================================================== */

/* Readability overrides for public page elements outside cards */
.container > h1, 
.container > h2, 
.container > .section-title,
.container > .section-header .section-title,
.section-header > div > h2.section-title {
    color: var(--text-heading) !important;
    text-shadow: none;
}

.container > .text-muted,
.container > .section-header .text-muted,
.section-header > div > p.text-muted {
    color: var(--text-muted) !important;
}

/* Soft glassmorphism for public cards */
.card, .news-card-premium, .about-showcase {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition);
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.news-card-premium h1, .news-card-premium h2, .news-card-premium h3,
.about-showcase h1, .about-showcase h2, .about-showcase h3 {
    color: var(--text-heading);
}

/* Transparent background for admin panel content */
.admin-content {
    background: var(--bg-admin-glass) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

/* Theme Toggle Button Icon Rules (Pure CSS-driven toggling) */
html:not([data-theme="dark"]) #theme-toggle-btn .sun-icon {
    display: none !important;
}
html:not([data-theme="dark"]) #theme-toggle-btn .moon-icon {
    display: block !important;
}

html[data-theme="dark"] #theme-toggle-btn .sun-icon {
    display: block !important;
}
html[data-theme="dark"] #theme-toggle-btn .moon-icon {
    display: none !important;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    opacity: 1 !important;
    transform: scale(1.08);
}
