/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, #dbeafe, #ffffff);
    min-height: 100vh;
    color: #374151;
    line-height: 1.5;
    padding-top: calc((var(--tg-content-safe-area-inset-top) + var(--tg-safe-area-inset-top))*2);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 90%;
    border-radius: 12px;
    opacity: 0.95;
    left: 5%;
    right: 5%;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.1);
    top: calc(var(--tg-content-safe-area-inset-top) + var(--tg-safe-area-inset-top));
    z-index: 100;
}

.header-content {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
}

.profile-btn {
    background: none;
    border: none;
}

.profile-btn:hover {
    background: #f3f4f6;
}

/* Main Content */
.main-content {
    padding: 24px 16px;
    max-width: 480px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 24px;
}

.welcome-section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 8px;
}

.welcome-section p {
    color: #6b7280;
    font-size: 14px;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 16px 16px 12px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: #3b82f6;
}

.card-header p {
    font-size: 14px;
    color: #6b7280;
}

.card-content {
    padding: 0 16px 16px;
}

/* Address Fields */
.address-fields {
    margin-bottom: 16px;
}

.address-field {
    margin-bottom: 16px;
}

.address-field label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    gap: 8px;
}

.address-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    font-family: monospace;
    font-size: 14px;
    color: #374151;
}

.copy-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.copy-btn:hover {
    background: #f3f4f6;
}

.copy-btn.copied {
    color: #10b981;
    border-color: #10b981;
}

/* Buttons */
.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: white;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
}

.btn-outline {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f3f4f6;
}

.full-width {
    width: 100%;
}

/* Info Box */
.info-box {
    background: #dbeafe;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #1e40af;
    margin-top: 16px;
}

/* Section */
.section {
    margin-bottom: 24px;
}

.section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

/* Action Cards */
.action-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-card:hover {
    background: #f9fafb;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.action-icon.blue {
    background: #dbeafe;
    color: #3b82f6;
}

.action-icon.green {
    background: #d1fae5;
    color: #10b981;
}

.action-icon.purple {
    background: #e9d5ff;
    color: #8b5cf6;
}

.action-icon.orange {
    background: #ffedd5;
    color: #f97316;
}

.action-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.action-content p {
    font-size: 14px;
    color: #6b7280;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.cta-card .card-content {
    padding: 16px;
}

.cta-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cta-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.text-center {
    text-align: center;
}

/* Back Button */
.back-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: #f3f4f6;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.tab-btn:hover:not(.active) {
    background: #f3f4f6;
}

/* Order Cards */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.order-card:hover {
    background: #f9fafb;
}

.order-card.route-selected {
    border: 1px solid #7dd3fc;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.18);
}

.tracking-map-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.tracking-map-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tracking-map-header h2 {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.tracking-map-header p {
    color: #64748b;
    font-size: 12px;
}

.tracking-map-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #475569;
}

.tracking-map-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.tracking-map-legend .dot.visited {
    background: #5bc0eb;
}

.tracking-map-legend .dot.current {
    background: #a3e635;
}

.tracking-map-legend .dot.future {
    background: #9ca3af;
}

.tracking-route-map {
    height: 280px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #e2e8f0;
}

.route-marker {
    background: transparent;
}

.route-marker span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(2, 6, 23, 0.08);
}

.route-marker-visited span {
    background: #5bc0eb;
    animation: pulse-visited 2.2s ease-in-out infinite;
}

.route-marker-current span {
    background: #a3e635;
    animation: pulse-current 1.3s ease-in-out infinite;
}

.route-marker-future span {
    background: #9ca3af;
}

.route-marker-delivered-final span {
    background: #5bc0eb;
    animation: pulse-current 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 6px rgba(91, 192, 235, 0.2);
}

.route-popup {
    min-width: 180px;
}

.route-popup-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.route-popup-status,
.route-popup-time,
.route-popup-desc {
    font-size: 12px;
    color: #334155;
}

.tracking-point-sheet {
    margin-top: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    position: relative;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}

.tracking-point-sheet.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sheet-close {
    position: absolute;
    right: 8px;
    top: 8px;
    border: none;
    background: #e2e8f0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    color: #475569;
}

.sheet-content {
    padding-right: 28px;
}

.sheet-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.sheet-row {
    font-size: 12px;
    color: #334155;
    margin-bottom: 4px;
}

.sheet-row.muted {
    color: #94a3b8;
}

.sheet-row.delivered {
    color: #0f766e;
    font-weight: 600;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-id {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.order-id i {
    color: #6b7280;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.in-transit {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.ready {
    background: #fed7aa;
    color: #9a3412;
}

.status-badge.received {
    background: #f0fdf4;
    color: #15803d;
}

.status-badge.created {
    background: #e0e7ff;
    color: #3730a3;
}

.order-description {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.order-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

/* Expandable Order Details */
.expand-btn {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.expand-btn:hover {
    background: #f3f4f6;
}

.order-stages {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.stage {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.stage:last-child {
    margin-bottom: 0;
}

.stage-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2px;
}

.stage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: white;
}

.stage-dot.completed {
    background: #10b981;
    border-color: #10b981;
}

.stage-dot.current {
    background: #3b82f6;
    border-color: #3b82f6;
}

.stage-line {
    width: 2px;
    height: 24px;
    background: #e5e7eb;
    margin-top: 4px;
}

.stage-line.completed {
    background: #d1fae5;
}

.stage-content {
    flex: 1;
    padding-bottom: 8px;
}

.stage-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.stage-title.pending {
    color: #6b7280;
}

.stage-location {
    font-size: 12px;
    color: #6b7280;
}

.stage-date {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

/* QR Code Styles */
.qr-container {
    text-align: center;
    padding: 24px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 14px;
}

.qr-info {
    margin-bottom: 24px;
}

.qr-info p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.qr-url {
    font-size: 12px;
    color: #6b7280;
    word-break: break-all;
    padding: 0 16px;
}

.qr-actions {
    display: flex;
    gap: 12px;
}

.qr-actions .btn {
    flex: 1;
}

/* Branch Styles */
.branch-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.branch-header {
    margin-bottom: 12px;
}

.branch-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.branch-name i {
    color: #3b82f6;
}

.branch-manager {
    font-size: 14px;
    color: #6b7280;
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branch-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.branch-detail i {
    color: #6b7280;
    margin-top: 2px;
    width: 16px;
}

.branch-phone {
    color: #3b82f6;
    text-decoration: none;
}

.branch-phone:hover {
    text-decoration: underline;
}

/* Admin Styles */
.admin-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    width: 90%;
    border-radius: 12px;
    opacity: 0.95;
    left: 5%;
    right: 5%;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.1);
    top: calc(var(--tg-content-safe-area-inset-top) + var(--tg-safe-area-inset-top));
    z-index: 100;
}

.admin-header .header-content {
    padding: 12px 16px;
}

.admin-header .logo {
    font-size: 18px;
    color: #111827;
}

.admin-header p {
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-number.blue {
    color: #3b82f6;
}

.stat-number.green {
    color: #10b981;
}

.stat-number.purple {
    color: #8b5cf6;
}

.stat-number.orange {
    color: #f59e0b;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

/* Scanner Styles */
.scanner-area {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.scanner-icon {
    font-size: 48px;
    color: #6b7280;
    margin-bottom: 16px;
}

.scanner-text {
    color: #6b7280;
    margin-bottom: 8px;
}

.scanner-subtext {
    font-size: 14px;
    color: #6b7280;
}

.scanning .scanner-icon {
    animation: spin 2s linear infinite;
    color: #3b82f6;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-visited {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(91, 192, 235, 0.35);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 6px rgba(91, 192, 235, 0);
    }
}

@keyframes pulse-current {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.5);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(163, 230, 53, 0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 480px) {
    .main-content {
        padding: 16px 12px;
    }

    .card-content {
        padding: 0 12px 12px;
    }

    .action-card {
        padding: 12px;
    }

    .qr-code {
        width: 160px;
        height: 160px;
    }
}

/* Hidden class for JavaScript */
.hidden {
    display: none !important;
}

/* Utility Classes */
.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.p-4 {
    padding: 16px;
}

.text-sm {
    font-size: 14px;
}

.text-xs {
    font-size: 12px;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: bold;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-600 {
    color: #059669;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

/* ==================== NEW YEAR STYLES ==================== */

/* New Year theme - applied conditionally via JavaScript */
body.new-year-theme {
    background: linear-gradient(180deg, #1a365d 0%, #2d4a7c 30%, #dbeafe 100%);
}

body.new-year-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='50' font-size='20' fill='white' opacity='0.1'%3E❄%3C/text%3E%3C/svg%3E");
    background-size: 50px;
    opacity: 0.3;
    animation: snowfall 20s linear infinite;
}

@keyframes snowfall {
    0% { background-position: 0 0; }
    100% { background-position: 100px 500px; }
}

/* Snowflakes container */
.new-year-snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.new-year-snowflakes .snowflake {
    position: absolute;
    color: #fff;
    font-size: 16px;
    opacity: 0.7;
    animation: snowflake-fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowflake-fall {
    0% {
        transform: translateY(-100px) rotate(0deg) translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(20px);
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(-20px);
        opacity: 0.3;
    }
}

/* New Year header decoration */
body.new-year-theme .header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

body.new-year-theme .header::before {
    content: '❄️';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    animation: twinkle 2s ease-in-out infinite;
}

body.new-year-theme .header::after {
    content: '❄️';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    animation: twinkle 2s ease-in-out infinite 0.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* New Year cards */
body.new-year-theme .card {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

body.new-year-theme .action-card {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Festive welcome section */
body.new-year-theme .welcome-section h2::before {
    content: '🎄 ';
}

body.new-year-theme .welcome-section h2::after {
    content: ' 🎄';
}

/* Santa Claus button */
.santa-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    cursor: pointer;
    animation: santa-bounce 2s ease-in-out infinite;
    display: none;
}

.santa-container.visible {
    display: block;
}

@keyframes santa-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.santa-character {
    font-size: 60px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.santa-container:hover .santa-character {
    transform: scale(1.1);
}

.santa-speech-bubble {
    position: absolute;
    bottom: 70px;
    left: 50px;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    color: #1a202c;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: speech-pulse 2s ease-in-out infinite;
}

.santa-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 15px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #ffd700 transparent transparent transparent;
}

@keyframes speech-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Garland lights effect on header */
body.new-year-theme .header .header-content::before {
    content: '🔴🟢🔵🟡🔴🟢🔵🟡';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    letter-spacing: 8px;
    animation: garland-blink 1.5s ease-in-out infinite;
}

@keyframes garland-blink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Festive info box */
body.new-year-theme .info-box {
    background: linear-gradient(135deg, #dcfce7, #dbeafe);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* New Year button styles */
body.new-year-theme .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Festive stat cards */
body.new-year-theme .stat-card {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* New Year mobile adjustments */
@media (max-width: 480px) {
    .santa-container {
        bottom: 15px;
        left: 15px;
    }

    .santa-character {
        font-size: 50px;
    }

    .santa-speech-bubble {
        font-size: 11px;
        padding: 8px 12px;
        left: 40px;
        bottom: 60px;
    }
}
