/**
 * TaladSim - Main Stylesheet
 * ຕະຫຼາດເບີມຸງຄຸນ ລາວ
 * Modernized UI 2025
 */

/* ==========================================================================
   Variables & Design System
   ========================================================================== */
:root {
    /* Colors - Premium Gold & Navy Theme */
    --primary-color: #0f172a;
    /* Deep Navy */
    --primary-light: #1e293b;
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #b4941f;
    --accent-light: #fbf5d4;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(212, 175, 55, 0.3);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Ropa Sans', 'DM Sans', 'Roboto', 'Source Sans 3', 'Poppins', 'Noto Sans Lao Looped', 'Phetsarath', sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #fffbf5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    color: var(--accent-color);
}

.text-navy {
    color: var(--primary-color);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #f59e0b 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.logo img {
    height: 42px !important;
    width: auto !important;
    object-fit: contain;
}


/* ==========================================================================
   Cards & Elements
   ========================================================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Number Card Specifics */
.number-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.number-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.number-display {
    font-family: 'Inter', 'Ropa Sans', 'DM Sans', 'Roboto', 'Source Sans 3', 'Poppins', 'Noto Sans Lao Looped', 'Phetsarath', sans-serif !important;
    font-size: 26px !important;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin: var(--spacing-md) 0;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-gold {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.badge-navy {
    background: var(--primary-light);
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f59e0b 100%);
    color: white;
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-card);
        flex-direction: column;
        padding: var(--spacing-lg);
        transition: var(--transition-normal);
        overflow-y: auto;
        align-items: stretch;
    }

    .nav-menu.active {
        left: 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: var(--spacing-lg);
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--accent-color);
}

.footer-text {
    color: #94a3b8;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: var(--spacing-xs);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: var(--spacing-lg);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.social-links a {
    color: var(--text-light);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Number Card Styles (Ported)
   ========================================================================== */
.number-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.number-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.number-display {
    font-size: 26px !important;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-align: right;
    white-space: nowrap;
    font-family: 'Inter', 'Ropa Sans', 'DM Sans', 'Roboto', 'Source Sans 3', 'Poppins', 'Noto Sans Lao Looped', 'Phetsarath', sans-serif !important;
}

.type-badge {
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.2;
}

.price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--danger);
}

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

.score-sum strong {
    font-weight: 600;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-icons {
    display: flex;
    gap: 4px;
}

.contact-icon-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.contact-icon-new:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Provider Themes */
.unitel-theme {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #fb8c00;
}

.unitel-theme:hover {
    border-color: #f57c00;
    box-shadow: 0 10px 30px rgba(251, 140, 0, 0.2);
}

.lao-telecom-theme,
.ltc-theme {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-color: #ec407a;
}

.lao-telecom-theme:hover,
.ltc-theme:hover {
    border-color: #d81b60;
    box-shadow: 0 10px 30px rgba(236, 64, 122, 0.2);
}

.tplus-theme {
    background: linear-gradient(135deg, #fef8d4 0%, #f6db1b 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

.tplus-theme:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(246, 219, 27, 0.2);
}

.best-theme {
    background: linear-gradient(135deg, #dbe3ff 0%, #bccfff 100%);
    border-color: #0023a2;
}

.best-theme:hover {
    border-color: #001a7a;
    box-shadow: 0 10px 30px rgba(0, 35, 162, 0.2);
}

.etl-theme {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

.etl-theme:hover {
    border-color: #1976d2;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
}

/* Badge Colors */
.type-badge-unitel {
    background-color: #fb8c00;
}

.type-badge-lao-telecom {
    background-color: #ff5e5e;
}

.type-badge-tplus {
    background-color: #333;
}

.type-badge-best {
    background-color: #3150c2;
}

.type-badge-etl {
    background-color: #35a1f7;
}

/* Provider Logo */
.provider-logo-img {
    width: 40px;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 640px) {
    .number-card {
        padding: var(--spacing-sm);
    }

    .number-display {
        font-size: 1.25rem;
    }

    .type-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .price {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* ==========================================================================
   Advanced Search Specifics
   ========================================================================== */
.search-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.digit-box-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100% !important;
}

.digit-box {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: var(--radius-md) !important;
    transition: var(--transition-fast) !important;
    color: var(--primary-color) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

@media (min-width: 1024px) {
    .digit-box-grid {
        gap: 10px !important;
    }

    .digit-box {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }
}

@media (max-width: 640px) {
    .digit-box {
        font-size: 1rem !important;
        border-width: 1px !important;
        border-radius: 6px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }
}

.digit-box:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.digit-box.filled {
    background: var(--accent-light);
    border-color: var(--accent-color);
    color: var(--accent-hover);
}

.number-strip-full {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100% !important;
}

.number-strip-full .number-btn {
    flex: 0 0 auto !important;
    min-width: 45px !important;
    max-width: 50px !important;
    aspect-ratio: 1 !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .number-strip-full {
        gap: 3px !important;
    }

    .number-strip-full .number-btn {
        min-width: 42px !important;
        max-width: 48px !important;
    }
}

@media (max-width: 640px) {
    .number-strip-full {
        gap: 3px !important;
    }

    .number-strip-full .number-btn {
        min-width: 38px !important;
        max-width: 45px !important;
    }
}

.pair-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
}

@media (max-width: 640px) {
    .pair-number {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        font-size: 13px !important;
    }
}

.number-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
    font-weight: 700;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    .number-btn {
        font-size: 0.85rem;
        border-width: 1px;
        border-radius: 4px;
    }
}

.number-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.number-btn.liked {
    background: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
}

.number-btn.disliked {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}

.number-pad-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100% !important;
}

.number-btn-square {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    aspect-ratio: 1 !important;
    height: auto !important;
    max-width: 60px !important;
}

@media (min-width: 768px) {
    .number-btn-square {
        max-width: 50px !important;
    }
}

@media (min-width: 1024px) {
    .number-pad-group {
        gap: 6px !important;
    }

    .number-btn-square {
        max-width: 52px !important;
    }
}

@media (max-width: 640px) {
    .number-btn-square {
        max-width: 45px !important;
    }
}

.toggle-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    opacity: 0.6;
}

.toggle-btn.active {
    opacity: 1;
    transform: scale(1.05);
}

.toggle-btn[data-action="like"] {
    background: #dcfce7;
    color: #15803d;
}

.toggle-btn[data-action="dislike"] {
    background: #fee2e2;
    color: #b91c1c;
}

/* Switch Toggle */
.switch-container {
    width: 120px;
    height: 48px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
}

.switch-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 56px;
    height: 40px;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.switch-container.active {
    background: var(--accent-light);
}

.switch-container.active .switch-slider {
    transform: translateX(56px);
    color: var(--accent-hover);
}

/* ==========================================================================
   View Toggle & Table View (from index.php)
   ========================================================================== */
.view-toggle {
    position: relative;
    display: inline-flex;
    background: #e0e0e0;
    border-radius: 25px;
    padding: 4px;
}

.view-toggle button {
    padding: 10px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    border-radius: 20px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 2;
}

.view-toggle button.active {
    color: white;
}

.view-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.view-toggle.table-active::before {
    transform: translateX(100%);
}

/* Table View */
.table-view {
    display: none;
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-view.active {
    display: block;
}

.number-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.number-table thead {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.number-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.number-table th:nth-child(2) {
    min-width: 180px;
    width: 25%;
}

.number-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.number-table td:nth-child(2) {
    min-width: 180px;
    width: 25%;
    font-weight: 700;
    color: #2c5aa0;
    white-space: nowrap;
}

.number-table tbody tr {
    transition: all 0.2s;
}

.number-table tbody tr:hover {
    background: #fff9f0;
}

.table-number {
    font-size: 18px;
    font-weight: 700;
    color: #2c5aa0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.table-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: inline-block;
    white-space: nowrap;
}

.table-price {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.status-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
}

.status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

@media (max-width: 768px) {
    .number-table {
        min-width: 1000px;
    }

    .number-table th,
    .number-table td {
        padding: 8px 6px;
        font-size: 12px;
        line-height: 1.4;
    }

    .number-table th:nth-child(2),
    .number-table td:nth-child(2) {
        min-width: 160px;
        width: 22%;
        font-size: 13px;
    }

    .table-number {
        font-size: 14px;
    }

    .table-price {
        font-size: 13px;
    }

    .status-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .table-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .number-table {
        min-width: 800px;
    }

    .number-table th,
    .number-table td {
        padding: 6px 4px;
        font-size: 11px;
        line-height: 1.3;
    }

    .number-table th:nth-child(2),
    .number-table td:nth-child(2) {
        min-width: 140px;
        width: 20%;
        font-size: 12px;
    }

    .table-number {
        font-size: 12px;
    }

    .table-price {
        font-size: 11px;
    }

    .status-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .table-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* ==========================================================================
   Forecast Modal
   ========================================================================== */
.forecast-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.forecast-modal.active {
    display: flex;
}

.forecast-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUpFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.forecast-modal-header {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    padding: 25px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.forecast-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.forecast-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.forecast-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.forecast-modal-body {
    padding: 25px 20px;
}

.forecast-number-display {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 3px solid #ff9800;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.2);
}

.forecast-number-display .number {
    font-size: 32px;
    font-weight: 900;
    color: #e65100;
    letter-spacing: 3px;
    font-family: 'Inter', 'Ropa Sans', 'DM Sans', 'Roboto', 'Source Sans 3', 'Poppins', 'Noto Sans Lao Looped', 'Phetsarath', sans-serif !important;
}

.forecast-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.forecast-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.forecast-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.forecast-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.forecast-divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.forecast-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.forecast-info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.forecast-info-item .label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.forecast-info-item .value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.forecast-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid #25d366;
    background: white;
    color: #25d366;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.forecast-contact-btn:hover {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@media (min-width: 641px) {
    .forecast-modal-content {
        max-width: 200px !important;
    }
}

@media (max-width: 640px) {
    .forecast-modal-content {
        max-width: 95%;
    }

    .forecast-modal-header h2 {
        font-size: 20px;
    }

    .forecast-number-display .number {
        font-size: 26px;
    }

    .forecast-action-btn {
        font-size: 16px;
        padding: 14px;
    }

    .forecast-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==========================================================================
   Contact Modal
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.contact-section {
    background: #fff3e0;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.contact-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #e65100;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}