/* ==========================================================================
   BCT STORE - Multi-Page Vue 3 Design System & Styling
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #0b0f19;
    --bg-surface: #131b2e;
    --bg-card: rgba(23, 32, 54, 0.75);
    --bg-card-hover: rgba(30, 42, 71, 0.9);
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.35);
    
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.35);

    --emerald: #10b981;
    --emerald-hover: #059669;

    --rose: #f43f5e;
    --amber: #f59e0b;

    /* Text colors */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Borders & Glass */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.18);
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-blur: blur(16px);

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.15);
    --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

[v-cloak] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Kantumruy Pro', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.15) 0%, transparent 45%);
    background-attachment: fixed;
}

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

.view-page {
    animation: fadeIn 0.3s ease-in-out;
}

.page-padding {
    padding: 2.5rem 0;
}

.page-center-padding {
    padding: 5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo-img {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.brand-logo-img-login {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 1px solid var(--border-highlight);
    box-shadow: var(--shadow-glow);
    margin: 0 auto 1rem;
}

.admin-brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

/* Search Box */
.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.clear-btn:hover {
    color: var(--text-main);
}

/* Header Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.nav-view-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.cloud-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.785rem;
    color: var(--emerald);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f59e0b;
}

.status-dot.online {
    background-color: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
}

.telegram-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(34, 158, 217, 0.15);
    border: 1px solid rgba(34, 158, 217, 0.4);
    border-radius: var(--radius-full);
    color: #38bdf8;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.telegram-nav-btn:hover {
    background: #229ED9;
    color: #ffffff;
    border-color: #229ED9;
    box-shadow: 0 0 20px rgba(34, 158, 217, 0.4);
    transform: translateY(-2px);
}

.lang-btn, .admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
}

.admin-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    box-shadow: var(--shadow-sm);
}

.admin-btn:hover, .admin-btn.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    opacity: 0.95;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 2.5rem;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 850px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s ease-out;
}

.hero-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.25rem 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: var(--border-color);
}

/* Filter & Sort Section */
.filter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2.5rem 0 2rem;
    flex-wrap: wrap;
}

.category-scroll {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
}

.category-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.925rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.cat-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cat-pill.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 18px var(--primary-glow);
    transform: translateY(-2px);
}

.filter-controls-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* High Contrast Dropdowns (Fix Unreadable Select Options) */
select, .price-filter-box select, .sort-box select {
    padding: 0.65rem 1.1rem;
    background: #131b2e !important;
    border: 1px solid var(--border-highlight) !important;
    border-radius: var(--radius-md);
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%233b82f6%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.8rem top 50% !important;
    background-size: 0.65rem auto !important;
    padding-right: 2.2rem !important;
}

select option, .price-filter-box select option, .sort-box select option {
    background-color: #0f172a !important;
    color: #ffffff !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

select:focus, .price-filter-box select:focus, .sort-box select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

/* Software Grid & Smooth Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.45);
    }
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.app-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-lg);
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.app-title-box {
    flex: 1;
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.cat-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.price-tag-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.price-tag-badge.free {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald);
}

.price-tag-badge.paid {
    background: rgba(245, 158, 11, 0.2);
    color: var(--amber);
}

.app-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-version {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.app-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.app-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.app-size-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
}

.app-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-card-details {
    flex: 1;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-details:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-card-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-card-download:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
    margin-bottom: 4rem;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Full-Page Product Detail View (No Popups)
   ========================================================================== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.12);
}

.page-detail-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.detail-header-large {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.detail-icon-large {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: var(--bg-dark);
    border: 1px solid var(--border-highlight);
}

.detail-title-large h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-card-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.drive-big-icon {
    font-size: 3rem;
    color: var(--emerald);
    margin-bottom: 1rem;
}

.download-countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.countdown-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Full-Page Admin Workspace (No Popups)
   ========================================================================== */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-sub-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-header-btns {
    display: flex;
    gap: 0.75rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon-bg {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-icon-bg.primary { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); }
.stat-icon-bg.accent { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }
.stat-icon-bg.emerald { background: linear-gradient(135deg, var(--emerald), var(--emerald-hover)); }

.stat-val {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-workspace-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.admin-tab-btn {
    padding: 0.75rem 1.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.admin-tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.admin-subview {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.form-card-page {
    max-width: 800px;
    margin: 0 auto;
}

.admin-table-wrapper {
    overflow-x: auto;
    max-height: 520px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-dark);
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.app-tbl-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-tbl-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.drive-link-truncate {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm-edit, .btn-sm-del {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-sm-edit { background: rgba(59, 130, 246, 0.2); color: var(--primary); }
.btn-sm-edit:hover { background: var(--primary); color: #fff; }

.btn-sm-del { background: rgba(244, 63, 94, 0.2); color: var(--rose); }
.btn-sm-del:hover { background: var(--rose); color: #fff; }

/* Admin Login Card */
.admin-login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.demo-auth-note {
    background: rgba(59, 130, 246, 0.08);
    border: 1px dashed rgba(59, 130, 246, 0.25);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.modal-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.highlight-group {
    background: rgba(59, 130, 246, 0.08);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.input-with-action {
    display: flex;
    gap: 0.5rem;
}

.btn-detect {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-detect:hover {
    box-shadow: var(--shadow-glow);
    opacity: 0.95;
}

.badge-auto {
    font-size: 0.7rem;
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.4rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.col-4 { flex: 1; }
.col-5 { flex: 5; }
.col-7 { flex: 7; }

.required { color: var(--rose); }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Button Classes */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-success {
    padding: 0.6rem 1.2rem;
    background: var(--emerald);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
}
.btn-success:hover { background: var(--emerald-hover); }

.btn-outline-danger {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--rose);
    border-radius: var(--radius-md);
    color: var(--rose);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
}
.btn-outline-danger:hover { background: var(--rose); color: #fff; }

.btn-download-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--emerald), #059669);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: var(--transition);
}

.btn-download-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-direct-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.w-100 { width: 100%; }
.text-center { text-align: center; }

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out forwards;
}

.toast.success { border-left: 4px solid var(--emerald); }
.toast.error { border-left: 4px solid var(--rose); }
.toast.info { border-left: 4px solid var(--primary); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }
    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .detail-content-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .col-4, .col-5, .col-7 {
        width: 100%;
    }
}

/* Telegram Direct Contact Card (Product Details) */
.telegram-help-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(34, 158, 217, 0.08);
    border: 1px dashed rgba(34, 158, 217, 0.35);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.telegram-card-icon {
    font-size: 2.25rem;
    color: #38bdf8;
}

.telegram-card-text h4 {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.telegram-card-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-telegram-direct {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: #229ED9;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-telegram-direct:hover {
    background: #1d8bc0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.5);
}

/* Floating Telegram Quick Action Button */
.floating-telegram-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 1500;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #229ED9, #0088cc);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(34, 158, 217, 0.5);
    transition: var(--transition);
    animation: pulseTelegram 2.5s infinite;
}

.floating-telegram-btn:hover {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 12px 35px rgba(34, 158, 217, 0.7);
}

@keyframes pulseTelegram {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.7);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(34, 158, 217, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 158, 217, 0);
    }
}

/* Footer Styling */
.app-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-telegram-link {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-telegram-link:hover {
    color: #ffffff;
    text-decoration: underline;
}
