:root {
    --th-primary: #F97316; /* Orange */
    --th-primary-dark: #EA580C;
    --th-primary-light: #FFEDD5;
    --th-text-dark: #1E293B;
    --th-text-light: #64748B;
    --th-bg-body: #F8FAFC;
    --th-bg-card: #FFFFFF;
    --th-border: #E2E8F0;
    --th-radius: 20px;
    --th-radius-sm: 12px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--th-bg-body);
    color: var(--th-text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar */
.th-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background-color: var(--th-bg-card);
    border-right: 1px solid var(--th-border);
    padding: 20px 0;
    z-index: 1000;
    overflow-y: auto;
}

.th-brand {
    display: flex;
    align-items: center;
    padding: 0 25px;
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--th-text-dark);
    text-decoration: none;
}

.th-brand i {
    color: var(--th-primary);
    font-size: 1.5rem;
    margin-right: 10px;
}

.th-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--th-text-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

.th-nav-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.th-nav-link:hover, .th-nav-link.active {
    color: var(--th-primary);
    background-color: var(--th-primary-light);
    border-right-color: var(--th-primary);
    text-decoration: none;
}

.th-promo-sidebar {
    margin: 20px 20px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF4E5 0%, #FFEDD5 100%);
    border-radius: var(--th-radius-sm);
    text-align: center;
}

.th-promo-sidebar img {
    max-width: 100%;
    margin-top: 10px;
    border-radius: 50%;
}

/* Main Content */
.th-main-content {
    margin: 0 auto;
    max-width: 1540px;
    padding: 20px 24px;
}

/* Topbar */
.th-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.th-search-bar {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.th-search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 30px;
    border: 1px solid var(--th-border);
    background-color: var(--th-bg-card);
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.th-search-bar i.fa-search {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--th-text-light);
}

.th-search-bar .th-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background-color: var(--th-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.th-topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.th-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--th-text-dark);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
}

.th-action-btn i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--th-text-light);
}

.th-action-btn:hover i {
    color: var(--th-primary);
}

.th-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background-color: var(--th-primary);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}

/* Dedicated Topbar Auth & Avatar Styling */
.th-auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.th-auth-signin {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
    border: none;
}

.th-auth-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
    color: #ffffff !important;
}

.th-user-badge {
    background: #ffffff;
    border: 1.5px solid rgba(249, 115, 22, 0.35);
    color: #1e293b !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.th-user-badge:hover {
    border-color: #f97316;
    background: #fff7ed;
    color: #ea580c !important;
}

.th-admin-badge {
    background: #ffffff;
    border: 1.5px solid rgba(79, 70, 229, 0.35);
    color: #1e293b !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.th-admin-badge:hover {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4338ca !important;
}

.th-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #f97316;
}

.th-admin-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #4f46e5;
}

.th-logout-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #ef4444 !important;
    border: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.th-logout-btn:hover {
    background: #ef4444;
    color: #ffffff !important;
    transform: scale(1.08);
}

/* Hero Section (Full Width & Immersive) */
.th-hero {
    position: relative;
    border-radius: 28px;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    overflow: hidden;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.25);
    min-height: 440px;
}

.th-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.85) 48%, rgba(15, 23, 42, 0.4) 80%, rgba(15, 23, 42, 0.15) 100%);
    z-index: 1;
}

.th-hero-content {
    max-width: 580px;
    position: relative;
    z-index: 2;
}

.th-hero-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.th-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.th-hero h1 span {
    color: #fb923c;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.th-hero p {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.th-btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.5);
}

.th-btn-primary i {
    margin-left: 10px;
    transition: transform 0.2s;
}

.th-btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -5px rgba(249, 115, 22, 0.6);
}

.th-btn-primary:hover i {
    transform: translateX(4px);
}

.th-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.th-btn-secondary i {
    margin-left: 10px;
    color: #fb923c;
}

.th-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.th-hero-card {
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    border-radius: 20px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 380px;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.th-hero-card:hover {
    transform: translateY(-4px);
}

.th-hero-card-img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.th-hero-card span.title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}
.th-hero-card span.subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
}
.th-hero-card span.price {
    color: #fb923c;
    font-weight: 800;
    font-size: 1.25rem;
}

/* Features */
.th-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.th-feature-card {
    background: white;
    padding: 20px;
    border-radius: var(--th-radius-sm);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.th-feature-icon {
    width: 45px;
    height: 45px;
    background-color: var(--th-primary-light);
    color: var(--th-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 15px;
}

.th-feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 2px 0;
}
.th-feature-text p {
    font-size: 0.75rem;
    color: var(--th-text-light);
    margin: 0;
}

/* Section Headers */
.th-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.th-section-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}

.th-view-all {
    color: var(--th-text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.th-view-all:hover {
    color: var(--th-primary);
}

/* Cuisines */
.th-cuisines {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.th-cuisine-card {
    border-radius: var(--th-radius-sm);
    padding: 25px 15px 15px;
    text-align: center;
    transition: transform 0.2s;
    text-decoration: none;
    color: var(--th-text-dark);
    display: block;
}

.th-cuisine-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: var(--th-text-dark);
}

.th-cuisine-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.th-cuisine-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.th-cuisine-card p {
    font-size: 0.75rem;
    color: var(--th-text-light);
    margin: 0;
}

.bg-green-light { background-color: #E8F5E9; }
.bg-yellow-light { background-color: #FFF8E1; }
.bg-orange-light { background-color: #FFF3E0; }
.bg-pink-light { background-color: #FCE4EC; }
.bg-purple-light { background-color: #F3E5F5; }

/* Popular Dishes */
.th-dishes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.th-dish-card {
    background: white;
    border-radius: var(--th-radius-sm);
    padding: 15px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.th-dish-card:hover {
    transform: translateY(-5px);
}

.th-dish-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #10B981;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
}
.th-dish-badge.discount { background: #EF4444; }

.th-dish-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 15px;
}

.th-dish-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
    height: 35px;
}

.th-dish-card p {
    font-size: 0.75rem;
    color: var(--th-text-light);
    margin: 0 0 10px 0;
}

.th-dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.th-dish-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--th-text-dark);
}

.th-dish-rating {
    font-size: 0.75rem;
    color: var(--th-text-light);
    font-weight: 600;
}
.th-dish-rating i {
    color: #FBBF24;
}

.th-add-btn {
    background: var(--th-primary-light);
    color: var(--th-primary);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.th-add-btn:hover {
    background: var(--th-primary);
    color: white;
}

/* Banners */
.th-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.th-banner-card {
    border-radius: var(--th-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.th-banner-card.green {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}
.th-banner-card.orange {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
}

.th-banner-card .tag {
    background: white;
    color: #10B981;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 15px;
}
.th-banner-card.orange .tag { color: var(--th-primary); }

.th-banner-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    max-width: 60%;
}

.th-banner-card p {
    font-size: 0.85rem;
    color: var(--th-text-light);
    max-width: 50%;
    margin-bottom: 20px;
}

.th-banner-card .th-btn-primary {
    align-self: flex-start;
    padding: 8px 20px;
    font-size: 0.85rem;
}
.th-banner-card.green .th-btn-primary {
    background: #10B981;
}
.th-banner-card.green .th-btn-primary:hover {
    background: #059669;
}

.th-banner-img {
    position: absolute;
    right: 0;
    bottom: -20px;
    height: 120%;
    object-fit: contain;
}

/* Footer */
.th-footer {
    background: white;
    padding: 40px;
    border-radius: var(--th-radius);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 30px;
    margin-bottom: 20px;
}

.th-footer h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.th-footer p {
    font-size: 0.85rem;
    color: var(--th-text-light);
    line-height: 1.6;
}

.th-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.th-footer ul li {
    margin-bottom: 10px;
}

.th-footer ul li a {
    color: var(--th-text-light);
    text-decoration: none;
    font-size: 0.85rem;
}
.th-footer ul li a:hover {
    color: var(--th-primary);
}

.th-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.th-socials a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--th-bg-body);
    color: var(--th-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.th-socials a:hover {
    background: var(--th-primary);
    color: white;
}

.th-subscribe {
    display: flex;
    margin-top: 15px;
}

.th-subscribe input {
    border: 1px solid var(--th-border);
    padding: 10px 15px;
    border-radius: 8px 0 0 8px;
    font-size: 0.85rem;
    width: 100%;
}
.th-subscribe button {
    background: var(--th-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive Design */

/* Large Devices, Wide Screens */
@media (max-width: 1200px) {
    .th-dishes {
        grid-template-columns: repeat(4, 1fr);
    }
    .th-cuisines {
        grid-template-columns: repeat(4, 1fr);
    }
    .th-hero h1 {
        font-size: 3rem;
    }
}

/* Medium Devices, Desktops */
@media (max-width: 992px) {
    .th-main-content {
        padding: 15px 20px;
    }
    .th-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .th-dishes {
        grid-template-columns: repeat(3, 1fr);
    }
    .th-cuisines {
        grid-template-columns: repeat(3, 1fr);
    }
    .th-footer {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }
    .th-hero-image {
        width: 65%;
    }
}

/* Small Devices, Tablets */
@media (max-width: 768px) {
    .th-topbar {
        flex-direction: column;
        gap: 15px;
    }
    .th-topbar-actions {
        width: 100%;
        justify-content: center;
    }
    .th-search-bar {
        width: 100%;
        max-width: none;
    }
    
    .th-hero {
        flex-direction: column;
        padding: 40px 30px;
        text-align: left;
        gap: 30px;
        min-height: auto;
    }
    .th-hero-content {
        margin-bottom: 0;
        max-width: 100%;
    }
    .th-hero-content > div:last-child {
        justify-content: flex-start;
    }
    .th-hero h1 {
        font-size: 2.6rem;
    }
    .th-hero-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    
    .th-banners {
        grid-template-columns: 1fr;
    }
    .th-dishes {
        grid-template-columns: repeat(2, 1fr);
    }
    .th-footer {
        grid-template-columns: 1fr 1fr;
    }
}

/* Extra Small Devices, Phones */
@media (max-width: 576px) {
    .th-main-content {
        padding: 10px 15px;
    }
    .th-features {
        grid-template-columns: 1fr;
    }
    .th-cuisines {
        grid-template-columns: repeat(2, 1fr);
    }
    .th-dishes {
        grid-template-columns: 1fr;
    }
    .th-footer {
        grid-template-columns: 1fr;
    }
    .th-hero {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .th-hero h1 {
        font-size: 2.1rem;
    }
    .th-btn-primary, .th-btn-secondary {
        display: inline-flex;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
        text-align: center;
        justify-content: center;
    }
    .th-banner-card h3 {
        max-width: 100%;
        font-size: 1.5rem;
    }
    .th-banner-card p {
        max-width: 100%;
    }
    .th-banner-img {
        opacity: 0.3;
        z-index: 0;
        right: 0;
    }
    .th-banner-card > * {
        z-index: 1;
        position: relative;
    }
}

/* ==========================================================================
   Flutter Apps Showcase & Interactive Device Mockup
   ========================================================================== */

.th-flutter-simple-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 40px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.th-flutter-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(145deg, #0b0f19 0%, #15132d 50%, #0b0f19 100%);
    border-radius: 0;
    padding: 48px 24px;
    margin-bottom: 50px;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-sizing: border-box;
}

.th-flutter-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.th-flutter-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.th-flutter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 16px;
}

.th-flutter-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 36px auto;
    position: relative;
    z-index: 2;
}

.th-flutter-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.th-flutter-header p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Tab Switcher for Flutter Apps */
.th-flutter-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.th-app-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.th-app-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.th-app-tab-btn.active.tab-customer {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border-color: #f97316;
    box-shadow: 0 12px 25px -4px rgba(249, 115, 22, 0.45);
    transform: translateY(-2px);
}

.th-app-tab-btn.active.tab-merchant {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 12px 25px -4px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
}

.th-app-tab-btn.active.tab-delivery {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 12px 25px -4px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

/* View Mode Toggles (Single Focus vs 3-in-1 Side-by-Side) */
.th-flutter-view-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.th-view-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.th-view-pill.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

/* Showcase Layout */
.th-app-showcase-row {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* App Details Card */
.th-app-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(14px);
}

.th-app-info-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.th-app-info-card .role-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.th-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.th-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
}

.th-feature-pill i {
    color: #38bdf8;
}

.th-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.th-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.th-feature-list li i {
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.th-feature-list li i.icon-orange { color: #f97316; }
.th-feature-list li i.icon-green { color: #10b981; }
.th-feature-list li i.icon-indigo { color: #818cf8; }

/* Custom URL Input Bar for Developers */
.th-url-config-bar {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 22px;
}

.th-url-config-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.th-url-input-group {
    display: flex;
    gap: 8px;
}

.th-url-input-group input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 7px 12px;
    outline: none;
    transition: border-color 0.2s;
}

.th-url-input-group input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.th-url-apply-btn {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.th-url-apply-btn:hover {
    background: #7dd3fc;
}

.th-app-action-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.th-app-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transition: all 0.2s ease;
    border: none;
}

.th-app-btn-main:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
}

.th-app-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.th-app-btn-outline:hover {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Realistic Phone Mockup Frame (Single & Multi Device)
   ========================================================================== */
.th-phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.th-phone-frame {
    position: relative;
    width: 390px;
    height: 800px;
    background: #0f172a;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 
        0 0 0 3px #334155,
        0 0 0 5px #1e293b,
        0 25px 60px -15px rgba(0, 0, 0, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.08);
    border: 3px solid #1e293b;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.th-phone-frame:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 0 0 3px #475569,
        0 0 0 5px #1e293b,
        0 30px 70px -15px rgba(0, 0, 0, 0.9),
        inset 0 0 10px rgba(255, 255, 255, 0.12);
}

/* Dynamic Island */
.th-phone-dynamic-island {
    display: none;
}

.th-phone-camera-lens {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1e1b4b;
    border: 1px solid #312e81;
}

.th-phone-sensor {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0f172a;
}

/* Status Bar */
.th-phone-statusbar {
    display: none;
}

.th-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.th-phone-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: block;
    box-sizing: border-box;
    pointer-events: auto;
}

/* Phone Home Indicator Bar */
.th-phone-home-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    z-index: 10;
    pointer-events: none;
}

/* Tri-Device Horizontal Grid View */
.th-tri-device-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    position: relative;
    z-index: 2;
    margin-top: 20px;
    width: 100%;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    padding: 10px 16px 24px 16px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.th-tri-col {
    flex: 0 0 395px;
    width: 395px;
    max-width: 395px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    padding: 18px 12px 20px 12px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.th-tri-col-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.th-tri-col-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 14px;
    text-align: center;
}

.th-tri-device-grid .th-phone-frame {
    width: 370px;
    height: 760px;
    border-radius: 48px;
    padding: 8px;
    box-sizing: border-box;
}

.th-tri-device-grid .th-phone-screen {
    border-radius: 40px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ==========================================================================
   Dedicated Section-Wise Apps Page (.th-apps-page)
   ========================================================================== */

.th-apps-gateway-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.th-apps-page {
    margin: 0 auto;
    max-width: 1540px;
    padding: 20px 24px;
}

.th-nav-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.th-nav-pill:hover {
    color: var(--th-primary);
    background: var(--th-primary-light);
    text-decoration: none;
}

.th-apps-hero {
    text-align: center;
    padding: 60px 20px 50px 20px;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border-radius: 32px;
    margin-bottom: 48px;
    color: #ffffff;
    box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
}

.th-apps-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.th-apps-hero h1 span {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.th-apps-hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto;
}

.th-showcase-section {
    background: linear-gradient(145deg, #0b0f19 0%, #15132d 50%, #0b0f19 100%);
    border-radius: 32px;
    padding: 48px 24px;
    margin-bottom: 56px;
    color: #ffffff;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.35);
}

.th-app-spotlight-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    padding: 56px 40px;
    margin-bottom: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.th-app-spotlight-section.bg-light-gradient {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
}

.th-spotlight-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.th-spotlight-feature i {
    font-size: 1.35rem;
    margin-top: 2px;
}

.th-spotlight-feature h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
}

.th-spotlight-feature p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.45;
}

.th-download-hub-section {
    background: linear-gradient(145deg, #0b0f19 0%, #1e1b4b 50%, #0b0f19 100%);
    border-radius: 32px;
    padding: 56px 40px;
    margin-bottom: 48px;
    color: #ffffff;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.th-apk-download-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 28px 24px;
    height: 100%;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.th-apk-download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
}

.th-apk-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.th-specs-section {
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 32px;
    padding: 56px 40px;
    margin-bottom: 48px;
    color: #ffffff;
}

.th-spec-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 28px 24px;
    height: 100%;
}

.th-spec-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.th-spec-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.th-spec-card p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .th-app-spotlight-section {
        padding: 36px 20px;
    }
    .th-apps-hero h1 {
        font-size: 2.1rem;
    }
}

