/* ================================
   LUCKY LOTTERY - MAIN STYLESHEET
   Red (#FF6B35) + Yellow (#FFD700) Theme
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

body {
    background: #f5f5f5;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    html, body {
        font-size: 16px;
    }
}

a {
    color: #FF6B35;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* ========== APP HEADER & SIDEBAR ========== */

.app-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9f2d 45%, #ffd700 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 10px 24px rgba(94, 45, 5, 0.28);
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: hidden;
    isolation: isolate;
}

.app-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px);
    background-size: 13px 13px;
    opacity: 0.18;
    pointer-events: none;
}

.app-header::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    right: -110px;
    top: -180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px;
    gap: 10px;
    position: relative;
    z-index: 2;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    border-radius: 11px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.hamburger-menu span {
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Logo */
.header-logo {
    flex: 1;
    text-align: center;
}

.header-logo a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
    padding: 8px 14px;
}

.header-logo a:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.header-logo .logo-text {
    font-size: 25px;
    line-height: 1;
}

.logo-sub {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.86;
    font-weight: 700;
}

.logo-text {
    line-height: 1;
}

/* User Menu */
.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.user-meta {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-meta strong {
    color: white;
    font-size: 13px;
    max-width: 135px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 10px;
    letter-spacing: 0.2px;
}

.logout-link, .login-link {
    color: white;
    text-decoration: none;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 800;
}

.logout-link:hover, .login-link:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #fffdf9 0%, #fff3e2 100%);
    box-shadow: 0 20px 45px rgba(74, 43, 6, 0.32);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f3d4b0;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #FF6B35, #FFD700);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 8px;
}

.sidebar-close:hover {
    transform: rotate(90deg);
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-size: 16px;
}

.menu-item:hover {
    background: #f5f5f5;
    border-left-color: #FF6B35;
    padding-left: 24px;
}

.menu-item.active {
    background: #FFF5E5;
    color: #FF6B35;
    border-left-color: #FF6B35;
    font-weight: bold;
}

.menu-icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.menu-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-item.active .menu-icon {
    color: #FF6B35;
}

.menu-text {
    flex: 1;
}

.menu-logout {
    color: #C41E3A;
}

.menu-logout:hover {
    background: #FFE5E5;
}

.sidebar-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

.sidebar-footer {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #e0e0e0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 20, 7, 0.42);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile View */
@media (max-width: 768px) {
    .app-header {
        padding: 6px 0;
        box-shadow: 0 8px 16px rgba(94, 45, 5, 0.2);
    }

    .app-header::after {
        display: none;
    }

    .header-container {
        min-height: 54px;
        padding: 0 12px;
    }

    .hamburger-menu {
        display: flex;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .header-user {
        display: none;
    }
    
    .header-logo a {
        font-size: 18px;
        gap: 8px;
        padding: 0;
        border-radius: 0;
        border: none;
        background: transparent;
    }

    .logo-mark {
        width: 24px;
        height: 24px;
    }

    .logo-mark svg {
        width: 14px;
        height: 14px;
    }

    .header-logo .logo-text {
        font-size: 18px;
    }

    .logo-sub {
        display: none;
    }
    
    .sidebar {
        width: 100%;
        max-width: 330px;
    }

    .sidebar-header {
        padding: 16px;
    }

    .sidebar-header h2 {
        font-size: 22px;
    }

    .sidebar-close {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.2);
    }

    .sidebar-close:hover {
        background: rgba(255, 255, 255, 0.34);
    }

    .sidebar-menu {
        padding: 10px;
    }

    .menu-item {
        margin-bottom: 8px;
        padding: 12px 12px;
        gap: 12px;
        border-radius: 12px;
        border: 1px solid #f1dfc8;
        border-left: none;
        background: #fffdf9;
        box-shadow: 0 4px 10px rgba(122, 69, 18, 0.08);
        font-size: 15px;
    }

    .menu-item:hover {
        background: #fff5e7;
        border-left: none;
        border-color: #ffc892;
        padding-left: 12px;
        transform: translateX(1px);
    }

    .menu-item.active {
        background: linear-gradient(135deg, #fff0df, #ffe4c4);
        border: 1px solid #ffbe83;
        border-left: none;
        color: #ff6b35;
    }

    .menu-icon {
        min-width: 30px;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: 1px solid #f3dbc0;
        background: #fff8ef;
        color: #7b5b3c;
    }

    .menu-icon svg {
        width: 16px;
        height: 16px;
    }

    .menu-item.active .menu-icon {
        color: #fff;
        border-color: transparent;
        background: linear-gradient(135deg, #ff6b35, #f8b644);
    }

    .menu-text {
        font-size: 14px;
        font-weight: 700;
        color: #3d352d;
    }

    .menu-item.active .menu-text {
        color: #df5a2a;
    }

    .sidebar-divider {
        margin: 8px 0 12px;
        background: #edd9c1;
    }

    .sidebar-footer {
        background: rgba(255, 255, 255, 0.45);
        border-top: 1px solid #ecd8be;
        color: #876746;
        padding: 14px 16px;
    }

    .sidebar-footer p {
        line-height: 1.45;
    }
}

/* Desktop View - Hide Hamburger */
@media (min-width: 769px) {
    .sidebar {
        position: sticky;
        top: 88px;
        transform: translateX(0);
        width: 100%;
        height: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        background: #ffffff;
        border-bottom: 1px solid #ececec;
        flex-direction: row;
        z-index: 998;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-close {
        display: none;
    }
    
    .sidebar-menu {
        display: flex;
        padding: 0 16px;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        gap: 5px;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .menu-item {
        padding: 10px 14px;
        border-left: none;
        border-bottom: 3px solid transparent;
        background: transparent;
        color: #555;
        flex-shrink: 0;
    }
    
    .menu-item:hover {
        background: #fff5e5;
        border-left: none;
        border-bottom-color: #ff6b35;
        color: #ff6b35;
        padding-left: 14px;
    }
    
    .menu-item.active {
        background: #fff;
        border-bottom-color: #ff6b35;
        color: #ff6b35;
    }
    
    .sidebar-divider {
        display: none;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .menu-icon {
        display: none;
    }
    
    .menu-text {
        color: inherit;
        font-size: 14px;
    }
    
    .menu-logout {
        color: #c41e3a;
    }
    
    .menu-logout:hover {
        background: #ffe5e5;
        color: #c41e3a;
    }
}

/* ========== HEADER & NAVIGATION ========== */
header {
    background: linear-gradient(135deg, #FF6B35, #FFD700);
    color: white;
    padding: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

header nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
}

header nav a:hover {
    opacity: 1;
    border-bottom-color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    header {
        padding: 14px 0;
    }
    
    header .container {
        padding: 0 16px;
    }
    
    header .logo {
        font-size: 20px;
    }
    
    header nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #FF6B35;
        padding: 0;
    }
    
    header nav.active {
        display: flex;
    }
    
    header nav a {
        padding: 16px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: left;
        display: block;
        margin: 0;
        border: none;
        font-size: 16px;
    }
    
    header nav a:hover {
        background: rgba(0, 0, 0, 0.1);
    }
    
    .hamburger {
        display: flex;
    }
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap;
}

.tabs .tab-button {
    padding: 14px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tabs .tab-button.active {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
}

.tabs .tab-button:hover {
    color: #FF6B35;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .tabs {
        gap: 0;
        margin: -20px -16px 0 -16px;
    }
    
    .tabs .tab-button {
        padding: 14px 16px;
        flex: 1;
        font-size: 14px;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 24px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #E55A25;
}

.btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .btn {
        padding: 16px 28px;
        font-size: 18px;
        width: 100%;
        border-radius: 10px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35, #FFD700);
}

.btn-success {
    background: #2D7A3E;
}

.btn-warning {
    background: #FFD700;
    color: #333;
}

.btn-danger {
    background: #C41E3A;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-family: Arial, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 18px;
        padding: 18px 12px;
        border-radius: 10px;
    }
}

/* ========== ALERTS ========== */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #E5F5E5;
    color: #2D7A3E;
    border-left: 4px solid #2D7A3E;
}

.alert-error {
    background: #FFE5E5;
    color: #C41E3A;
    border-left: 4px solid #C41E3A;
}

.alert-warning {
    background: #FFF5E5;
    color: #FF6B35;
    border-left: 4px solid #FF6B35;
}

.alert-info {
    background: #E5F0FF;
    color: #1976D2;
    border-left: 4px solid #1976D2;
}

/* ========== CARDS ========== */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 18px;
    background: linear-gradient(135deg, #FF6B35, #FFD700);
    color: white;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    font-size: 18px;
    margin: -20px -20px 15px -20px;
}

.card-body {
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .card {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .card-header {
        padding: 16px;
        font-size: 18px;
        margin: -16px -16px 12px -16px;
    }
}

/* ========== TABLES ========== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.table th {
    background: #FF6B35;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.table tr:hover {
    background: #f9f9f9;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-primary {
    background: #FF6B35;
    color: white;
}

.badge-success {
    background: #2D7A3E;
    color: white;
}

.badge-warning {
    background: #FFD700;
    color: #333;
}

.badge-danger {
    background: #C41E3A;
    color: white;
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        margin: 0 auto;
        width: 100%;
    }
    
    .row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
}

/* ========== SECTIONS ========== */
section {
    margin-bottom: 40px;
}

section h1:not(.hero-title) {
    font-size: 32px;
    color: #FF6B35;
    margin-bottom: 20px;
    text-align: center;
}

.hero-title {
    color: #fff;
    text-align: left;
}

section h2 {
    color: #FF6B35;
    border-bottom: 4px solid #FFD700;
    padding-bottom: 12px;
    margin-bottom: 24px;
    font-size: 28px;
}

section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    section {
        margin-bottom: 30px;
    }
    
    section h1:not(.hero-title) {
        font-size: 26px;
        margin-bottom: 16px;
    }
    
    section h2 {
        font-size: 22px;
        border-bottom-width: 3px;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }
    
    section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #999;
    font-size: 14px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
    gap: 10px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .mt-20 {
        margin-top: 16px;
    }
    
    .mb-20 {
        margin-bottom: 16px;
    }
    
    .p-20 {
        padding: 16px;
    }
    
    .flex {
        flex-direction: column;
    }
    
    .flex-between {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .container {
        padding: 0 16px;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* Mobile-friendly inputs */
    input, textarea, select {
        font-size: 18px !important;
    }
    
    /* Ensure proper spacing on mobile */
    h1 { margin: 20px 0 15px 0; }
    h2 { margin: 16px 0 12px 0; }
    h3 { margin: 14px 0 10px 0; }
    
    /* Mobile-friendly tables */
    .table {
        font-size: 14px;
    }
    
    .table th, .table td {
        padding: 12px 8px;
    }
    
    /* Full-width buttons on mobile */
    .btn {
        width: 100%;
    }
    
    /* Tab navigation */
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 45%;
        font-size: 14px;
        padding: 12px 8px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fadeIn {
    animation: fadeIn 0.3s ease-in;
}

.slideUp {
    animation: slideUp 0.3s ease-out;
}

/* ========== MOBILE FRIENDLY COMPONENTS ========== */

/* Stat Cards */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #FF6B35;
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #FF6B35;
}

@media (max-width: 768px) {
    .stat-card {
        padding: 16px;
    }
    
    .stat-card h3 {
        font-size: 12px;
    }
    
    .stat-card .value {
        font-size: 24px;
    }
}

/* Draw Cards */
.draw-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #FFD700;
}

.draw-card h3 {
    margin: 0 0 10px 0;
    color: #FF6B35;
    font-size: 18px;
}

.draw-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
}

.draw-info .info-item {
    display: flex;
    flex-direction: column;
}

.draw-info .label {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
}

.draw-info .value {
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

@media (max-width: 768px) {
    .draw-card {
        padding: 16px;
    }
    
    .draw-card h3 {
        font-size: 16px;
    }
    
    .draw-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Amount Selection */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.amount-btn {
    padding: 12px 8px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: all 0.3s;
    font-size: 13px;
}

.amount-btn:hover,
.amount-btn.active {
    border-color: #FF6B35;
    background: #FFF5E5;
    color: #FF6B35;
}

@media (max-width: 768px) {
    .amount-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .amount-btn {
        padding: 14px 8px;
        font-size: 12px;
    }
}

/* Accordion */
.accordion {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 16px;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333;
    user-select: none;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: #f5f5f5;
}

.accordion-header::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s;
}

.accordion.active .accordion-header::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion.active .accordion-body {
    padding: 16px;
    max-height: 1000px;
}

@media (max-width: 768px) {
    .accordion-header {
        padding: 14px;
        font-size: 15px;
    }
    
    .accordion.active .accordion-body {
        padding: 14px;
    }
}

/* Modal/Dialog */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
        border-radius: 16px;
    }
}

/* Toast Messages */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.toast {
    animation: slideInRight 0.3s ease-out;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #FFD700);
    transition: width 0.3s;
}

/* Badge/Label */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-primary {
    background: #FF6B35;
    color: white;
}

.badge-success {
    background: #2D7A3E;
    color: white;
}

.badge-warning {
    background: #FFD700;
    color: #333;
}

.badge-danger {
    background: #C41E3A;
    color: white;
}

.badge-info {
    background: #1976D2;
    color: white;
}

/* List Items */
.list-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-label {
    color: #666;
    font-size: 14px;
}

.list-item-value {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

/* Divider */
.divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

/* Grid Layout for Mobile */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr !important; }
    .grid-3 { grid-template-columns: 1fr !important; }
    .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Shared Footer */
.ll-footer {
    margin-top: 40px;
    background: #1f2430;
    color: #e7e9ef;
}

.ll-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ll-footer-brand {
    font-size: 15px;
    font-weight: 800;
}

.ll-footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ll-footer-links a {
    color: #ffd46a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.ll-footer-links a:hover {
    text-decoration: underline;
}

.ll-footer-copy {
    font-size: 12px;
    color: #cfd5df;
}

@media (max-width: 768px) {
    .ll-footer-inner {
        justify-content: center;
        text-align: center;
    }
}
