:root {
            --accent: #FA6B1C;
            --accent-strong: #E85A0C;
            --accent-soft: rgba(250, 107, 28, .12);
            --accent-softer: rgba(250, 107, 28, .07);

            --bg: #F4F6F8;
            --bg-card: #FFFFFF;
            --bg-elevated: #FFFFFF;
            --text-primary: #17212B;
            --text-secondary: #70808F;
            --text-tertiary: #9AA7B2;
            --border: rgba(23, 33, 43, .07);
            --border-strong: rgba(23, 33, 43, .12);

            --shadow-card: 0 1px 2px rgba(23, 33, 43, .03), 0 5px 18px rgba(23, 33, 43, .055);
            --shadow-float: 0 8px 28px rgba(250, 107, 28, .30);

            --radius-sm: 10px;
            --radius-md: 14px;
            --radius-lg: 18px;
            --radius-xl: 22px;
        }

        [data-theme="dark"] {
            --bg: #0E1115;
            --bg-card: #171B21;
            --bg-elevated: #1C222A;
            --text-primary: #F2F4F7;
            --text-secondary: #A0AAB5;
            --text-tertiary: #68737E;
            --border: rgba(255, 255, 255, .07);
            --border-strong: rgba(255, 255, 255, .12);

            --accent: #FA6B1C;
            --accent-strong: #F56A16;
            --accent-soft: rgba(250, 107, 28, .15);
            --accent-softer: rgba(250, 107, 28, .08);

            --shadow-card: 0 1px 2px rgba(0, 0, 0, .18), 0 7px 24px rgba(0, 0, 0, .18);
        }

        :root {
            --tg-accent: var(--accent);
            --tg-bg: var(--bg);
            --tg-card: var(--bg-card);
            --tg-text: var(--text-primary);
            --tg-hint: var(--text-secondary);
            --tg-link: var(--accent);
            --tg-button-text: #FFFFFF;
        }

        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            height: 100%;
            overflow-x: hidden;
            overscroll-behavior-y: none;
            background: var(--tg-bg);
        }

        body {
            min-height: 100%;
            padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
            overflow-x: hidden;
            background: radial-gradient(circle at 100% 0%, rgba(250, 107, 28, .055), transparent 28%),
            var(--tg-bg);
            color: var(--tg-text);
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            font-size: 14px;
            line-height: 1.45;
            letter-spacing: -.01em;
            transition: background .2s ease, color .2s ease;
        }

        button, input {
            font: inherit;
        }

        button {
            border: 0;
            background: transparent;
            cursor: pointer;
        }

        input {
            border: 0;
            outline: 0;
            background: transparent;
            color: var(--tg-text);
        }

        svg {
            display: block;
            max-width: 100%;
        }

        /* ───────────────── HEADER ───────────────── */

        .app-header {
            position: sticky;
            top: 0;
            z-index: 100;
            padding: var(--tg-safe-top, 0px) 16px 8px; /* Tepa padding 10px dan 2px ga tushirildi */
            background: color-mix(
                    in srgb,
                    var(--tg-bg) 90%,
                    transparent
            );
            border-bottom: 1px solid var(--border);
            backdrop-filter: blur(22px) saturate(160%);
            -webkit-backdrop-filter: blur(22px) saturate(160%);
        }

        .ah-top {
            min-height: 28px; /* 54px o'rniga 38px */
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
        }

        .tramplin-brand {
            display: flex !important;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 28px; /* 54px o'rniga 38px */
            text-decoration: none;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .tramplin-logo {
            width: 230px !important;
            height: 70px !important;

            max-width: 230px !important;
            max-height: 70px !important;
        }

        .brand-name, .role-badge {
            display: none !important;
        }

        .user-brand {
            margin-left: auto;
            display: flex !important;
            align-items: center;
            justify-content: flex-end;
            gap: 9px;
            min-width: 0;
            max-width: min(58vw, 330px);
            cursor: pointer;
            border-radius: 14px;
            padding: 4px 6px;
            transition: background .16s ease, transform .16s ease;
        }

        .user-brand:active {
            transform: scale(.98);
            background: var(--accent-softer);
        }

        .header-avatar-wrap {
            position: relative;
            width: 40px;
            height: 40px;
            flex: 0 0 40px;
        }

        .header-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            display: block;
            background: var(--accent-soft);
            border: 2px solid var(--tg-card);
            box-shadow: 0 2px 9px rgba(0, 0, 0, .10);
        }

        .header-online {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: #22C55E;
            border: 2px solid var(--tg-card);
        }

        .header-user-info {
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            line-height: 1.1;
        }

        .header-user-name {
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: var(--tg-text);
            font-size: 13px;
            font-weight: 800;
        }

        .header-user-status {
            margin-top: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: var(--tg-hint);
            font-size: 10px;
            font-weight: 600;
        }

        .header-status-dot {
            width: 6px;
            height: 6px;
            flex: 0 0 6px;
            border-radius: 50%;
            background: var(--accent);
        }

        .header-profile-arrow {
            width: 16px;
            height: 16px;
            flex: 0 0 16px;
            color: var(--tg-hint);
            margin-left: 1px;
        }

        .search-bar {
            height: 44px;
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 9px;
            padding: 0 13px;
            border: 1px solid var(--border);
            border-radius: 13px;
            background: var(--tg-card);
            box-shadow: 0 1px 3px rgba(0, 0, 0, .025);
        }

        .search-bar svg {
            width: 17px;
            height: 17px;
            flex: 0 0 auto;
            stroke: var(--tg-hint);
        }

        .search-bar input {
            width: 100%;
            min-width: 0;
            font-size: 14px;
            font-weight: 500;
        }

        .search-bar input::placeholder {
            color: var(--tg-hint);
        }

        @media (max-width: 520px) {
            .tramplin-logo {
                width: 190px !important;
                height: 58px !important;

                max-width: 190px !important;
                max-height: 58px !important;
            }
        }

        /* ───────────────── FILTER CHIPS ───────────────── */

        .cats {
            display: flex;
            gap: 7px;
            overflow-x: auto;
            padding: 11px 16px 9px;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        .cats::-webkit-scrollbar,
        .pop-row::-webkit-scrollbar,
        .detail-gallery::-webkit-scrollbar {
            display: none;
        }

        .cat {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 34px;
            padding: 0 13px;
            border: 1px solid var(--border);
            border-radius: 999px;
            background: var(--tg-card);
            color: var(--tg-hint);
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(0, 0, 0, .025);
            transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
        }

        .cat svg {
            width: 14px;
            height: 14px;
            stroke: currentColor;
        }

        .cat.on {
            border-color: var(--accent);
            background: var(--accent);
            color: #fff;
            box-shadow: 0 4px 12px rgba(250, 107, 28, .18);
        }

        .cat:active {
            transform: scale(.96);
        }

        /* ───────────────── HERO ───────────────── */

        .hero-carousel {
            position: relative;
            margin: 7px 16px 0;
            overflow: hidden;
        }

        #heroTrack {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            overscroll-behavior-x: contain;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        #heroTrack::-webkit-scrollbar {
            display: none;
        }

        #heroTrack .hero {
            flex: 0 0 100%;
            min-width: 100%;
            scroll-snap-align: start;
        }

        .hero {
            min-height: 178px;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-xl);
            color: #fff;
            isolation: isolate;
        }

        .hero.h1 {
            background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .17), transparent 28%),
            linear-gradient(135deg, #6B2608 0%, #E85A0C 56%, #FA6B1C 100%);
        }

        .hero.h2 {
            background: radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .18), transparent 30%),
            linear-gradient(135deg, #9C3E0B 0%, #F56A16 55%, #FF9A5C 100%);
        }

        .hero.h3 {
            background: radial-gradient(circle at 85% 5%, rgba(255, 255, 255, .15), transparent 28%),
            linear-gradient(135deg, #7A2E0A 0%, #C94B0B 60%, #FA6B1C 100%);
        }

        .hero::before,
        .hero::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            z-index: -1;
        }

        .hero::before {
            width: 180px;
            height: 180px;
            right: -70px;
            top: -90px;
            border: 1px solid rgba(255, 255, 255, .12);
            box-shadow: inset 0 0 0 28px rgba(255, 255, 255, .035);
        }

        .hero::after {
            width: 110px;
            height: 110px;
            right: 65px;
            bottom: -78px;
            background: rgba(255, 255, 255, .055);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            min-width: 0;
            max-width: 70%;
        }

        .hero-tag {
            display: inline-flex;
            align-items: center;
            min-height: 22px;
            margin-bottom: 9px;
            padding: 3px 8px;
            border: 1px solid rgba(255, 255, 255, .18);
            border-radius: 999px;
            background: rgba(255, 255, 255, .13);
            color: rgba(255, 255, 255, .92);
            font-size: 9px;
            line-height: 1;
            font-weight: 800;
            letter-spacing: .5px;
            text-transform: uppercase;
        }

        .hero-title {
            margin-bottom: 6px;
            color: #fff;
            font-size: clamp(20px, 5.8vw, 25px);
            line-height: 1.08;
            font-weight: 850;
            letter-spacing: -.8px;
        }

        .hero-sub {
            max-width: 230px;
            color: rgba(255, 255, 255, .78);
            font-size: 11.5px;
            line-height: 1.45;
            font-weight: 500;
        }

        .hero-art {
            position: relative;
            z-index: 2;
            width: 82px;
            height: 82px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 82px;
            font-size: 54px;
            line-height: 1;
            filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
        }

        .hero-art img,
        .hero-art svg {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transform: scale(2);
        }

        .hero-dots {
            display: flex;
            justify-content: center;
            gap: 5px;
            min-height: 16px;
            padding-top: 8px;
        }

        .hero-dot {
            width: 5px;
            height: 5px;
            border-radius: 999px;
            background: var(--border-strong);
            transition: width .2s ease, background .2s ease;
        }

        .hero-dot.on {
            width: 17px;
            background: var(--accent);
        }

        /* ───────────────── SECTION ───────────────── */

        .sec {
            padding: 22px 16px 0;
        }

        .sec-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 11px;
        }

        .sec-title {
            font-size: 17px;
            line-height: 1.2;
            font-weight: 800;
            letter-spacing: -.45px;
        }

        .sec-all {
            flex: 0 0 auto;
            color: var(--accent);
            font-size: 12px;
            font-weight: 750;
        }

        /* ───────────────── STATS ───────────────── */

        .stats-row {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 7px;
        }

        .stat-card {
            min-width: 0;
            padding: 11px 6px 10px;
            text-align: center;
            background: var(--tg-card);
            border: 1px solid var(--border);
            border-radius: 13px;
            box-shadow: var(--shadow-card);
        }

        .stat-num {
            color: var(--accent);
            font-size: 17px;
            line-height: 1.15;
            font-weight: 850;
            letter-spacing: -.45px;
        }

        .stat-label {
            margin-top: 3px;
            overflow: hidden;
            color: var(--tg-hint);
            font-size: 9.5px;
            line-height: 1.25;
            font-weight: 650;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* ───────────────── FORMAT LIST ───────────────── */

        .fmt-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .fmt-card {
            min-height: 68px;
            display: flex;
            align-items: center;
            gap: 11px;
            padding: 10px 12px;
            background: var(--tg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            box-shadow: var(--shadow-card);
            cursor: pointer;
            transition: transform .16s ease, background .16s ease;
        }

        .fmt-card:active {
            transform: scale(.985);
            background: var(--accent-softer);
        }

        .fmt-icon,
        .dir-icon {
            width: 43px;
            height: 43px;
            flex: 0 0 43px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 13px;
            background: var(--accent-soft);
            color: var(--accent);
        }

        .fmt-icon svg {
            width: 19px;
            height: 19px;
            stroke: currentColor;
        }

        .fmt-icon img,
        .dir-icon img {
            width: 27px;
            height: 27px;
            object-fit: contain;
        }

        .fmt-info {
            min-width: 0;
            flex: 1;
        }

        .fmt-info h4 {
            margin-bottom: 2px;
            color: var(--tg-text);
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
        }

        .fmt-info p {
            overflow: hidden;
            color: var(--tg-hint);
            font-size: 10.5px;
            line-height: 1.35;
            font-weight: 500;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .fmt-arrow {
            width: 25px;
            height: 25px;
            flex: 0 0 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-tertiary);
        }

        .fmt-arrow svg {
            width: 16px;
            height: 16px;
        }

        /* ───────────────── POPULAR COURSES ───────────────── */

        .pop-row {
            display: flex;
            gap: 9px;
            margin: 0 -16px;
            padding: 1px 16px 3px;
            overflow-x: auto;
            scrollbar-width: none;
            scroll-snap-type: x proximity;
            -webkit-overflow-scrolling: touch;
        }

        .pop-card {
            flex: 0 0 132px;
            min-height: 132px;
            padding: 14px 10px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--tg-card);
            border: 1px solid var(--border);
            border-radius: 17px;
            box-shadow: var(--shadow-card);
            scroll-snap-align: start;
            cursor: pointer;
            transition: transform .16s ease, border-color .16s ease;
        }

        .pop-card:active {
            transform: scale(.96);
        }

        .pop-icon {
            width: 44px;
            height: 44px;
            margin-bottom: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 13px;
            background: var(--accent-soft);
            color: var(--accent);
        }

        .pop-icon svg {
            width: 21px;
            height: 21px;
            stroke: currentColor;
        }

        .pop-name {
            width: 100%;
            min-height: 31px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--tg-text);
            font-size: 11.5px;
            line-height: 1.25;
            font-weight: 750;
        }

        .pop-price {
            margin-top: 4px;
            color: var(--accent);
            font-size: 10.5px;
            line-height: 1;
            font-weight: 800;
        }

        /* ───────────────── VIDEO COURSE GRID ───────────────── */

        .grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .prod-card {
            min-width: 0;
            overflow: hidden;
            background: var(--tg-card);
            border: 1px solid var(--border);
            border-radius: 17px;
            box-shadow: var(--shadow-card);
            cursor: pointer;
            transition: transform .16s ease;
        }

        .prod-card:active {
            transform: scale(.975);
        }

        .prod-img {
            position: relative;
            width: 100%;
            aspect-ratio: 1.45 / 1;
            min-height: 102px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: linear-gradient(135deg, #6E2808, #E85A0C);
            color: #fff;
            font-size: 38px;
        }

        .prod-img::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(to top, rgba(0, 0, 0, .22), transparent 50%);
        }

        .prod-img img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        .prod-flag {
            position: absolute;
            z-index: 2;
            top: 8px;
            left: 8px;
            max-width: calc(100% - 16px);
            padding: 4px 7px;
            overflow: hidden;
            border-radius: 7px;
            background: rgba(17, 24, 31, .62);
            color: #fff;
            font-size: 8px;
            line-height: 1;
            font-weight: 800;
            text-overflow: ellipsis;
            white-space: nowrap;
            backdrop-filter: blur(8px);
        }

        .prod-dur {
            position: absolute;
            z-index: 2;
            right: 8px;
            bottom: 8px;
            padding: 4px 7px;
            border-radius: 7px;
            background: rgba(17, 24, 31, .62);
            color: #fff;
            font-size: 8px;
            line-height: 1;
            font-weight: 750;
            backdrop-filter: blur(8px);
        }

        .prod-body {
            padding: 10px 11px 11px;
        }

        .prod-name {
            overflow: hidden;
            margin-bottom: 3px;
            color: var(--tg-text);
            font-size: 12px;
            line-height: 1.3;
            font-weight: 800;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .prod-desc {
            min-height: 29px;
            margin-bottom: 9px;
            overflow: hidden;
            color: var(--tg-hint);
            font-size: 9.5px;
            line-height: 1.45;
            font-weight: 500;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .prod-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .prod-price {
            color: var(--accent);
            font-size: 12px;
            line-height: 1;
            font-weight: 850;
            letter-spacing: -.2px;
        }

        /* ───────────────── TESTIMONIAL ───────────────── */

        .test-card {
            padding: 15px;
            background: var(--tg-card);
            border: 1px solid var(--border);
            border-radius: 17px;
            box-shadow: var(--shadow-card);
        }

        .test-stars {
            margin-bottom: 8px;
            color: #FFB21A;
            font-size: 11px;
            line-height: 1;
            letter-spacing: 2px;
        }

        .test-text {
            margin-bottom: 13px;
            color: var(--tg-text);
            font-size: 12px;
            line-height: 1.55;
            font-weight: 550;
        }

        .test-who {
            display: flex;
            align-items: center;
            gap: 9px;
        }

        .test-avatar {
            width: 34px;
            height: 34px;
            flex: 0 0 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: 12px;
            font-weight: 850;
        }

        .test-who b {
            display: block;
            color: var(--tg-text);
            font-size: 11.5px;
            font-weight: 800;
        }

        .test-who span {
            display: block;
            margin-top: 1px;
            color: var(--tg-hint);
            font-size: 9.5px;
            font-weight: 600;
        }

        /* ───────────────── FAQ ───────────────── */

        #faqSec {
            padding-bottom: 8px;
        }

        #faqContainer {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .faq-item {
            overflow: hidden;
            background: var(--tg-card);
            border: 1px solid var(--border);
            border-radius: 15px;
            box-shadow: var(--shadow-card);
            transition: background .18s ease, border-color .18s ease;
        }

        .faq-q {
            width: 100%;
            min-height: 52px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            text-align: left;
            color: var(--tg-text);
            font-size: 12px;
            line-height: 1.35;
            font-weight: 750;
            cursor: pointer;
        }

        .faq-q span {
            min-width: 0;
            flex: 1;
        }

        .faq-q svg {
            width: 17px;
            height: 17px;
            flex: 0 0 17px;
            stroke: var(--tg-hint);
            transition: transform .2s ease;
        }

        .faq-item.open .faq-q svg {
            transform: rotate(45deg);
        }

        /* MUHIM: javob boshlanishida umuman ko'rinmaydi */
        .faq-a {
            display: none !important;
        }

        /* Savol bosilgandan keyingina javob savol tagida chiqadi */
        .faq-item.open .faq-a {
            display: block !important;
        }

        .faq-a p {
            margin: 0;
            padding: 0 14px 14px;
            color: var(--tg-hint);
            font-size: 11px;
            line-height: 1.55;
            font-weight: 500;
        }

        .fab-container {
            position: fixed;
            z-index: 250;
            right: 16px;
            bottom: calc(16px + env(safe-area-inset-bottom, 0px));
            width: 54px;
            height: 54px;
        }

        .floating-action-btn {
            position: absolute;
            inset: 0;
            z-index: 2;
            width: 54px;
            height: 54px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, .32);
            box-shadow: var(--shadow-float);
            transition: transform .22s cubic-bezier(.2, .8, .2, 1), background .22s ease;
        }

        .floating-action-btn:active {
            transform: scale(.92);
        }

        .fab-container.active .floating-action-btn {
            background: #E5484D;
        }

        .fab-icon-wrap {
            position: relative;
            width: 23px;
            height: 23px;
        }

        .fab-icon-open,
        .fab-icon-close {
            position: absolute;
            inset: 0;
            transition: opacity .18s ease, transform .22s ease;
        }

        .fab-icon-open {
            opacity: 1;
            transform: scale(1) rotate(0);
        }

        .fab-icon-close {
            opacity: 0;
            transform: scale(.5) rotate(-70deg);
        }

        .fab-container.active .fab-icon-open {
            opacity: 0;
            transform: scale(.5) rotate(70deg);
        }

        .fab-container.active .fab-icon-close {
            opacity: 1;
            transform: scale(1) rotate(0);
        }

        .fab-child {
            position: absolute;
            left: 3px;
            top: 3px;
            z-index: 1;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: #fff;
            text-decoration: none;
            opacity: 0;
            pointer-events: none;
            transform: translate(0, 0) scale(.2);
            box-shadow: 0 7px 20px rgba(0, 0, 0, .18);
            transition: opacity .22s ease, transform .3s cubic-bezier(.2, .9, .25, 1.2);
        }

        .fab-container.active .fab-child {
            opacity: 1;
            pointer-events: auto;
        }

        .fab-container.active .fab-tg {
            transform: translate(0, -67px) scale(1);
            background: #229ED9;
        }

        .fab-container.active .fab-insta {
            transform: translate(-49px, -49px) scale(1);
            background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
        }

        .fab-container.active .fab-phone {
            transform: translate(-67px, 0) scale(1);
            background: #22C55E;
        }

        /* ───────────────── MODALS / BOTTOM SHEETS ───────────────── */

        .modal-bg {
            position: fixed;
            inset: 0;
            z-index: 300;
            display: flex;
            align-items: flex-end;
            padding: 0;
            background: rgba(0, 0, 0, .42);
            opacity: 0;
            pointer-events: none;
            transition: opacity .2s ease;
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
            will-change: opacity;
        }

        .modal-bg.show {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-sheet {
            width: 100%;
            max-height: 92vh;
            overflow-y: auto;
            padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
            background: var(--tg-card);
            color: var(--tg-text);
            border-radius: 25px 25px 0 0;
            box-shadow: 0 -8px 36px rgba(0, 0, 0, .16);
            transform: translateY(35px);
            transition: transform .28s cubic-bezier(.2, .8, .2, 1);
            overscroll-behavior: contain;
            scrollbar-width: none;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            will-change: transform;
        }

        .modal-sheet::-webkit-scrollbar {
            display: none;
        }

        .modal-bg.show .modal-sheet {
            transform: translateY(0);
        }

        .modal-handle {
            width: 34px;
            height: 4px;
            margin: 0 auto 15px;
            border-radius: 999px;
            background: var(--border-strong);
        }

        .modal-title {
            margin-bottom: 5px;
            color: var(--tg-text);
            font-size: 18px;
            line-height: 1.2;
            font-weight: 850;
            letter-spacing: -.45px;
        }

        .modal-desc {
            margin-bottom: 15px;
            color: var(--tg-hint);
            font-size: 11.5px;
            line-height: 1.5;
            font-weight: 500;
        }

        .dir-list {
            display: flex;
            flex-direction: column;
            gap: 7px;
            max-height: 65vh;
            overflow-y: auto;
        }

        .dir-item {
            min-height: 62px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 11px;
            background: var(--tg-bg);
            border: 1px solid var(--border);
            border-radius: 15px;
            cursor: pointer;
            transition: transform .15s ease, background .15s ease;
        }


        .dir-icon svg {
            width: 20px !important;
            height: 20px !important;
            stroke: currentColor;
        }

        .dir-info {
            min-width: 0;
            flex: 1;
        }

        .dir-name {
            overflow: hidden;
            color: var(--tg-text);
            font-size: 12px;
            line-height: 1.25;
            font-weight: 800;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dir-sub {
            margin-top: 2px;
            overflow: hidden;
            color: var(--tg-hint);
            font-size: 9px;
            line-height: 1.3;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dir-badge {
            flex: 0 0 auto;
            padding: 5px 7px;
            border-radius: 7px;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: 9px;
            line-height: 1;
            font-weight: 800;
        }

        /* ───────────────── COURSE DETAIL ───────────────── */

        .modal-sheet.detail {
            max-height: 94vh;
        }

        .detail-banner {
            position: relative;
            overflow: hidden;
            margin: -10px -16px 16px;
            padding: 22px 16px 20px;
            background: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, .18), transparent 30%),
            linear-gradient(135deg, #5B2107, #E85A0C 58%, #FA6B1C);
            border-radius: 25px 25px 20px 20px;
            color: #fff;
        }

        .detail-banner::before {
            content: "";
            position: absolute;
            width: 150px;
            height: 150px;
            right: -65px;
            top: -75px;
            border: 1px solid rgba(255, 255, 255, .13);
            border-radius: 50%;
        }

        .detail-banner .format-badge {
            position: relative;
            z-index: 1;
            display: inline-flex;
            margin-bottom: 10px;
            padding: 4px 8px;
            border: 1px solid rgba(255, 255, 255, .16);
            border-radius: 999px;
            background: rgba(255, 255, 255, .12);
            color: rgba(255, 255, 255, .9);
            font-size: 8.5px;
            line-height: 1;
            font-weight: 800;
            letter-spacing: .4px;
            text-transform: uppercase;
        }

        .detail-emoji {
            position: relative;
            z-index: 1;
            width: 54px;
            height: 54px;
            margin-bottom: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 38px;
            line-height: 1;
        }

        #cdEmoji img {
            width: 42px !important;
            height: 42px !important;
            object-fit: contain;
        }

        .detail-banner h2 {
            position: relative;
            z-index: 1;
            color: #fff;
            font-size: 20px;
            line-height: 1.15;
            font-weight: 850;
            letter-spacing: -.6px;
        }

        #cdName {
            margin: 2px 0 14px !important;
            font-size: 20px !important;
            font-weight: 850 !important;
            letter-spacing: -.55px;
        }

        .detail-page-title {
            margin: 15px 0 14px !important;
            color: var(--tg-text);
            font-size: 20px !important;
            line-height: 1.2;
            font-weight: 850 !important;
            letter-spacing: -.55px;
        }

        .detail-stats {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
            margin-bottom: 18px;
        }

        .detail-stat {
            min-width: 0;
            padding: 10px 11px;
            background: var(--accent-softer);
            border: 1px solid var(--border);
            border-radius: 13px;
        }

        .detail-stat b {
            display: block;
            overflow: hidden;
            margin-bottom: 2px;
            color: var(--accent);
            font-size: 13px;
            line-height: 1.2;
            font-weight: 850;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .detail-stat span {
            display: block;
            overflow: hidden;
            color: var(--tg-hint);
            font-size: 9px;
            line-height: 1.3;
            font-weight: 650;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .detail-block {
            margin-bottom: 17px;
        }

        .detail-block h5 {
            margin-bottom: 6px;
            color: var(--tg-hint);
            font-size: 9.5px;
            line-height: 1.2;
            font-weight: 850;
            letter-spacing: .45px;
            text-transform: uppercase;
        }

        .detail-block p {
            color: var(--tg-text);
            font-size: 12px;
            line-height: 1.6;
            font-weight: 500;
        }

        .detail-gallery {
            display: flex;
            gap: 8px;
            margin: 0 -16px;
            padding: 0 16px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .detail-gallery .gimg,
        .detail-gallery .gallery-photo {
            flex: 0 0 128px;
            width: 128px;
            height: 88px;
            border-radius: 13px;
            object-fit: cover;
            background: linear-gradient(135deg, #6E2808, #FA6B1C);
        }

        .detail-btns {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .video-btn,
        .modal-btn,
        .btn-outline {
            width: 100%;
            min-height: 47px;
            border-radius: 13px;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
            transition: transform .15s ease, opacity .15s ease, background .15s ease;
        }

        .video-btn:active,
        .modal-btn:active,
        .btn-outline:active {
            transform: scale(.985);
        }

        .video-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            background: var(--accent-soft);
            color: var(--accent);
        }

        .video-btn svg {
            width: 17px;
            height: 17px;
        }

        .modal-btn {
            background: var(--accent);
            color: #fff;
            box-shadow: 0 5px 16px rgba(250, 107, 28, .18);
        }

        .dual-btn-row {
            display: flex;
            gap: 8px;
        }

        .dual-btn-row .modal-btn,
        .btn-outline {
            flex: 1;
        }

        .btn-outline {
            padding: 0 8px;
            border: 1px solid var(--border-strong);
            background: transparent;
            color: var(--accent);
        }

        .modal-price-row {
            min-height: 54px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 14px;
            padding: 0 13px;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: var(--accent-soft);
        }

        .modal-price-row span {
            color: var(--tg-hint);
            font-size: 10.5px;
            font-weight: 650;
        }

        .modal-price-row b {
            color: var(--accent);
            font-size: 16px;
            font-weight: 850;
        }

        .prog-list {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .prog-item {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            color: var(--tg-text);
            font-size: 11px;
            line-height: 1.5;
            font-weight: 550;
        }

        .prog-check {
            width: 19px;
            height: 19px;
            flex: 0 0 19px;
            margin-top: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: 10px;
            font-weight: 850;
        }

        .close-bottom-wrap {
            display: flex;
            justify-content: center;
            margin-top: 13px;
        }

        .close-bottom-btn {
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--accent-softer);
            color: var(--tg-hint);
            border: 1px solid var(--border);
        }

        .close-bottom-btn svg {
            width: 17px;
            height: 17px;
        }


        /* ───────────────── TRAMPLIN TEAM ───────────────── */
        .team-head-sub {
            color: var(--tg-hint);
            font-size: 10px;
            font-weight: 700;
        }

        [data-theme="dark"] .team-photo-fallback {
            background: linear-gradient(135deg, #402114, #2d1710);
        }

        .team-status {
            position: absolute;
            left: 8px;
            bottom: 8px;
            padding: 4px 6px;
            border-radius: 999px;
            background: rgba(255, 255, 255, .92);
            color: #1d2733;
            font-size: 8px;
            line-height: 1;
            font-weight: 850;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
        }

        [data-theme="dark"] .team-status {
            background: rgba(22, 24, 28, .92);
            color: #fff;
        }

        .team-name {
            overflow: hidden;
            font-size: 11px;
            line-height: 1.2;
            font-weight: 850;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .team-role {
            margin-top: 3px;
            min-height: 25px;
            color: var(--tg-hint);
            font-size: 8.5px;
            line-height: 1.25;
            font-weight: 600;
        }

        .team-socials {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 5px;
            margin-top: 6px;
        }

        .team-social {
            width: 21px;
            height: 21px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 7px;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: 7px;
            font-weight: 900;
        }

        .team-modal-photo {
            width: 92px;
            height: 92px;
            margin: 0 auto 12px;
            overflow: hidden;
            border-radius: 50%;
            border: 3px solid var(--accent-soft);
            background: var(--accent-softer);
        }

        .team-modal-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
        }

        .team-modal-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            font-size: 25px;
            font-weight: 900;
        }

        .team-detail-name {
            text-align: center;
            font-size: 19px;
            font-weight: 900;
        }

        .team-detail-role {
            margin-top: 4px;
            text-align: center;
            color: var(--accent);
            font-size: 11px;
            font-weight: 800;
        }

        .team-detail-bio {
            margin-top: 14px;
            color: var(--tg-hint);
            font-size: 12px;
            line-height: 1.55;
            text-align: center;
        }

        .team-detail-links {
            display: flex;
            gap: 8px;
            margin-top: 15px;
        }

        .team-detail-link {
            flex: 1;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--tg-bg);
            color: var(--tg-text);
            text-decoration: none;
            font-size: 10px;
            font-weight: 850;
        }

        .team-detail-link.primary {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }

        /* ───────────────── LOCATION ───────────────── */
        .location-card {
            position: relative;
            overflow: hidden;
            padding: 15px;
            display: grid;
            grid-template-columns: 52px minmax(0, 1fr);
            gap: 12px;
            background: var(--tg-card);
            border: 1px solid var(--border);
            border-radius: 18px;
            box-shadow: var(--shadow-card);
        }

        .location-card::after {
            content: "";
            position: absolute;
            width: 130px;
            height: 130px;
            right: -65px;
            top: -70px;
            border-radius: 50%;
            background: var(--accent-softer);
            pointer-events: none;
        }

        .location-icon {
            width: 52px;
            height: 52px;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            background: var(--accent-soft);
            color: var(--accent);
        }

        .location-icon svg {
            width: 24px;
            height: 24px;
        }

        .location-info {
            position: relative;
            z-index: 1;
            min-width: 0;
            padding: 1px 4px 0 0;
        }

        .location-title {
            margin-bottom: 4px;
            color: var(--tg-text);
            font-size: 15px;
            line-height: 1.25;
            font-weight: 850;
            word-break: normal;
            overflow-wrap: normal;
        }

        .location-address {
            color: var(--tg-hint);
            font-size: 11.5px;
            line-height: 1.5;
            font-weight: 550;
        }

        .location-buttons {
            position: relative;
            z-index: 1;
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 9px;
            margin-top: 2px;
        }

        .location-btn {
            min-height: 46px;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 0 10px;
            border-radius: 13px;
            text-decoration: none;
            white-space: nowrap;
            font-size: 11.5px;
            line-height: 1;
            font-weight: 800;
            transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
        }

        .location-btn:active {
            transform: scale(.97);
            opacity: .9;
        }

        .location-btn.google {
            background: var(--accent);
            color: #fff;
            box-shadow: 0 6px 16px rgba(250, 107, 28, .22);
        }

        .location-btn.yandex {
            background: var(--accent-soft);
            color: var(--accent);
            border: 1px solid var(--border-strong);
        }

        .location-btn svg {
            width: 17px;
            height: 17px;
            flex: 0 0 17px;
        }

        @media (max-width: 360px) {
            .location-card {
                grid-template-columns: 46px minmax(0, 1fr);
                padding: 13px;
            }

            .location-icon {
                width: 46px;
                height: 46px;
                border-radius: 14px;
            }

            .location-title {
                font-size: 13.5px;
            }

            .location-address {
                font-size: 10.5px;
            }

            .location-buttons {
                grid-template-columns: 1fr;
            }
        }

        @media (min-width: 600px) {
            .location-card {
                padding: 17px;
            }
        }

        /* ───────────────── MOTION / ACCESSIBILITY ───────────────── */

        @keyframes secPulse {
            0%, 100% {
                color: var(--tg-text);
            }
            30% {
                color: var(--accent);
            }
        }

        .sec-title.pulse {
            animation: secPulse 1s ease;
        }

        #heroCarouselSec,
        #formatsSec,
        #videoSec,
        #studentResultsSec,
        #faqSec {
            scroll-margin-top: calc(115px + var(--tg-safe-top, 0px));
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                scroll-behavior: auto !important;
                transition-duration: .01ms !important;
                animation-duration: .01ms !important;
            }
        }

        /* ───────────────── TABLET / DESKTOP ───────────────── */

        @media (min-width: 600px) {
            body {
                max-width: 720px;
                margin: 0 auto;
                border-left: 1px solid var(--border);
                border-right: 1px solid var(--border);
            }

            .app-header {
                padding-left: 22px;
                padding-right: 22px;
            }

            .cats {
                padding-left: 22px;
                padding-right: 22px;
            }

            .sec {
                padding-left: 22px;
                padding-right: 22px;
            }

            .hero-carousel {
                margin-left: 22px;
                margin-right: 22px;
            }

            .pop-row {
                margin-left: -22px;
                margin-right: -22px;
                padding-left: 22px;
                padding-right: 22px;
            }

            .grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        @media (min-width: 900px) {
            body {
                max-width: 960px;
            }

            .app-header {
                padding-left: 28px;
                padding-right: 28px;
            }

            .cats,
            .sec {
                padding-left: 28px;
                padding-right: 28px;
            }

            .hero-carousel {
                margin-left: 28px;
                margin-right: 28px;
            }

            .pop-row {
                margin-left: -28px;
                margin-right: -28px;
                padding-left: 28px;
                padding-right: 28px;
            }

            .fmt-list {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .modal-bg {
                align-items: center;
                justify-content: center;
                padding: 24px;
            }

            .modal-sheet {
                width: min(560px, 100%);
                max-height: min(88vh, 820px);
                border-radius: 25px;
                transform: translateY(20px) scale(.985);
            }

            .modal-bg.show .modal-sheet {
                transform: translateY(0) scale(1);
            }

            .modal-handle {
                display: none;
            }

            .detail-banner {
                margin: -10px -16px 16px;
            }

            .fab-container {
                right: max(18px, calc((100vw - 960px) / 2 + 18px));
            }
        }


        /* ───────────────── FREE CONSULTATION ───────────────── */
        .consult-modal-sheet {
            text-align: center;
            padding-top: 14px;
        }

        .consult-icon {
            width: 58px;
            height: 58px;
            margin: 4px auto 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 18px;
            background: rgba(250, 107, 28, .12);
            color: #FA6B1C;
        }

        .consult-icon svg {
            width: 27px;
            height: 27px;
        }

        .consult-number {
            display: block;
            margin: 8px 0 6px;
            color: var(--tg-text);
            font-size: 22px;
            line-height: 1.2;
            font-weight: 850;
            letter-spacing: -.5px;
            text-decoration: none;
        }

        .consult-caption {
            margin-bottom: 17px;
            color: var(--tg-hint);
            font-size: 11px;
            line-height: 1.45;
            font-weight: 500;
        }

        .consult-call-btn {
            width: 100%;
            min-height: 49px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border-radius: 14px;
            background: #22C55E;
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            box-shadow: 0 6px 18px rgba(34, 197, 94, .2);
            transition: transform .15s ease, opacity .15s ease;
        }

        .consult-call-btn:active {
            transform: scale(.985);
            opacity: .92;
        }

        .consult-call-btn svg {
            width: 18px;
            height: 18px;
        }

        .consult-close-btn {
            width: 100%;
            min-height: 43px;
            margin-top: 8px;
            border-radius: 13px;
            color: var(--tg-hint);
            background: var(--accent-softer);
            font-size: 12px;
            font-weight: 750;
        }

        /* ───────── MODAL LINK BUTTON FIX ───────── */

        .detail-btns a.modal-btn,
        .detail-btns a.btn-outline {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            text-decoration: none;
            -webkit-appearance: none;
            appearance: none;
            box-sizing: border-box;
            cursor: pointer;
        }

        .detail-btns a.modal-btn {
            width: 100%;
            min-height: 47px;
            padding: 0 14px;
            border-radius: 13px;
            background: var(--accent);
            color: #fff !important;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
        }

        .detail-btns a.btn-outline {
            min-height: 47px;
            padding: 0 12px;
            border: 1px solid var(--border-strong);
            border-radius: 13px;
            background: transparent;
            color: var(--accent) !important;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
        }

        .detail-btns a.modal-btn:visited,
        .detail-btns a.modal-btn:hover,
        .detail-btns a.modal-btn:active,
        .detail-btns a.btn-outline:visited,
        .detail-btns a.btn-outline:hover,
        .detail-btns a.btn-outline:active {
            text-decoration: none;
        }

        .dual-btn-row {
            display: flex;
            width: 100%;
            gap: 8px;
        }

        .dual-btn-row a.btn-outline,
        .dual-btn-row button.modal-btn {
            flex: 1 1 0;
            width: 0;
        }

        .tramplin-logo-dark {
            display: none;
        }

        [data-theme="dark"] .tramplin-logo-light {
            display: none;
        }

        [data-theme="dark"] .tramplin-logo-dark {
            display: block;
        }

        /* Ommabop yo'nalishlar ikonkalari */
        .pop-icon {
            width: 64px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .pop-icon img {
            width: 56px;
            height: 56px;
            object-fit: contain;
            object-position: center;
            display: block;
        }


        /* =========================================================
           TRAMPLIN JAMOASI — API'DAN DINAMIK, 2 TADAN
           ========================================================= */

        #popularSec .team-hero-carousel {
            position: relative;
            width: 100%;
            overflow: hidden;
            margin-top: 2px;
        }

        #popularSec .team-hero-track {
            display: flex;
            width: 100%;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            overscroll-behavior-x: contain;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        #popularSec .team-hero-track::-webkit-scrollbar {
            display: none;
        }

        #popularSec .team-hero-slide {
            flex: 0 0 100%;
            min-width: 100%;
            display: flex;
            gap: 10px;
            scroll-snap-align: start;
            box-sizing: border-box;
        }

        #popularSec .team-card {
            flex: 1 1 0;
            min-width: 0;
            height: 132px;
            box-sizing: border-box;

            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            padding: 10px 7px;
            margin: 0;

            border: 1px solid var(--border);
            border-radius: 16px;
            background: var(--tg-card);
            color: var(--tg-text);
            text-align: center;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
            transition:
                transform .16s ease,
                background .16s ease,
                border-color .16s ease;
        }

        #popularSec .team-card:active {
            transform: scale(.96);
            background: var(--accent-softer);
        }

        #popularSec .team-photo-wrap {
            position: relative;
            width: 58px;
            height: 58px;
            min-width: 58px;
            min-height: 58px;
            margin: 0 auto 7px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            background: var(--accent-soft);
            border: 2px solid var(--accent-soft);
        }

        #popularSec .team-photo,
        #popularSec .team-photo-fallback {
            width: 58px;
            height: 58px;
            border-radius: 50%;
            object-fit: cover;
        }

        #popularSec .team-photo {
            display: block;
            object-position: center top;
        }

        #popularSec .team-photo-fallback {
            display: none;
            align-items: center;
            justify-content: center;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: 15px;
            font-weight: 850;
        }

        #popularSec .team-name {
            width: 100%;
            max-width: 130px;
            margin: 0;
            color: var(--tg-text);
            text-align: center;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #popularSec .team-role {
            width: 100%;
            max-width: 130px;
            min-height: 0;
            margin: 3px 0 0;
            color: var(--tg-hint);
            text-align: center;
            font-size: 9.5px;
            line-height: 1.2;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #popularSec .team-empty,
        #popularSec .team-loading {
            width: 100%;
            min-height: 96px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            border: 1px solid var(--border);
            border-radius: 16px;
            background: var(--tg-card);
            color: var(--tg-hint);
            font-size: 11px;
            font-weight: 650;
            text-align: center;
        }

        #popularSec .team-hero-dots {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 5px;
            min-height: 16px;
            padding-top: 8px;
        }

        #popularSec .team-hero-dot {
            width: 5px;
            height: 5px;
            padding: 0;
            border: 0;
            border-radius: 999px;
            background: var(--border-strong);
            transition: width .2s ease, background .2s ease;
        }

        #popularSec .team-hero-dot.on {
            width: 17px;
            background: var(--accent);
        }

        /* TEAM MODAL — modeldagi barcha maydonlar uchun */

        #teamMemberModal .team-member-modal {
            padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
        }

        #teamMemberModal .team-modal-photo {
            width: 104px;
            height: 104px;
            margin: 0 auto 13px;
            overflow: hidden;
            border-radius: 50%;
            border: 3px solid var(--accent-soft);
            background: var(--accent-softer);
            box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
        }

        #teamMemberModal .team-modal-photo img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center top;
        }

        #teamMemberModal .team-modal-fallback {
            width: 100%;
            height: 100%;
            display: none;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            background: var(--accent-soft);
            font-size: 28px;
            font-weight: 900;
        }

        #teamMemberModal .team-detail-name {
            color: var(--tg-text);
            text-align: center;
            font-size: 20px;
            line-height: 1.2;
            font-weight: 900;
        }

        #teamMemberModal .team-detail-role {
            width: fit-content;
            max-width: 100%;
            margin: 7px auto 0;
            padding: 6px 11px;
            border-radius: 999px;
            background: var(--accent-soft);
            color: var(--accent);
            text-align: center;
            font-size: 10.5px;
            line-height: 1.2;
            font-weight: 800;
        }

        #teamMemberModal .team-detail-bio {
            margin-top: 14px;
            padding: 14px;
            border-radius: 15px;
            background: var(--tg-bg);
            border: 1px solid var(--border);
            color: var(--tg-hint);
            font-size: 12px;
            line-height: 1.58;
            text-align: left;
            white-space: pre-line;
            overflow-wrap: anywhere;
        }

        #teamMemberModal .team-detail-links {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin-top: 13px;
        }

        #teamMemberModal .team-detail-link {
            min-height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0 7px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--tg-bg);
            color: var(--tg-text);
            text-decoration: none;
            font-size: 9px;
            font-weight: 800;
            transition: transform .15s ease, background .15s ease;
        }

        #teamMemberModal .team-detail-link:active {
            transform: scale(.96);
        }

        #teamMemberModal .team-detail-link.primary {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }

#teamMemberModal .team-detail-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.course-detail-title {
    margin: 15px 0 10px;
    font-size: 20px;
    font-weight: 700;
}

        @media (max-width: 380px) {
            #popularSec .team-card {
                height: 128px;
            }

            #teamMemberModal .team-detail-links {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (min-width: 700px) {
            #popularSec .team-card {
                height: 148px;
            }

            #popularSec .team-photo-wrap,
            #popularSec .team-photo,
            #popularSec .team-photo-fallback {
                width: 68px;
                height: 68px;
            }
        }

/* ───────────────── O'QUVCHILAR NATIJALARI ───────────────── */
.student-results-section {
    padding-top: 6px;
}

.student-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.results-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

.results-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.student-results-title {
    color: var(--tg-text);
    font-size: 19px;
    line-height: 1.18;
    font-weight: 850;
    letter-spacing: -.035em;
}

.student-results-subtitle {
    margin-top: 4px;
    color: var(--tg-hint);
    font-size: 11px;
    font-weight: 550;
}

.results-count {
    flex: 0 0 auto;
    margin-bottom: 2px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--tg-card);
    color: var(--tg-hint);
    font-size: 10px;
    font-weight: 750;
}

.student-results-list {
    display: grid;
    grid-auto-columns: minmax(278px, 86%);
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    padding: 1px 0 7px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.student-results-list::-webkit-scrollbar { display: none; }

.student-result-card {
    display: flex;
    min-width: 0;
    min-height: 278px;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--tg-card);
    box-shadow: var(--shadow-card);
    scroll-snap-align: start;
}

.result-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.student-avatar {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    overflow: hidden;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
}

.student-avatar > span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.student-avatar > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-avatar-orange { background: linear-gradient(135deg, #F26A24, #F5A623); }
.student-avatar-violet { background: linear-gradient(135deg, #805AD5, #B794F4); }
.student-avatar-blue { background: linear-gradient(135deg, #0F8BCB, #47B3E8); }

.student-summary {
    min-width: 0;
    flex: 1;
}

.student-summary h3 {
    overflow: hidden;
    color: var(--tg-text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-summary p {
    margin-top: 2px;
    overflow: hidden;
    color: var(--tg-hint);
    font-size: 9.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-status {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .11);
    color: #169F4D;
    font-size: 8.5px;
    font-weight: 850;
}

.result-project {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--tg-bg);
}

.result-project-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 10px;
}

.result-project-icon svg {
    width: 17px;
    height: 17px;
}

.website-icon { background: rgba(250, 107, 28, .13); color: var(--accent); }
.bot-icon { background: rgba(128, 90, 213, .13); color: #805AD5; }
.dashboard-icon { background: rgba(15, 139, 203, .13); color: #0F8BCB; }

.result-project-copy {
    min-width: 0;
    flex: 1;
}

.result-project-copy span {
    display: block;
    color: var(--tg-hint);
    font-size: 8.5px;
    font-weight: 700;
}

.result-project-copy strong {
    display: block;
    margin-top: 1px;
    overflow: hidden;
    color: var(--tg-text);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-project-link {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 9px;
    background: var(--tg-card);
    color: var(--accent);
}

.result-project-link:active { transform: scale(.94); }

.result-project-link svg { width: 15px; height: 15px; }

.result-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 12px;
}

.result-metrics div {
    min-width: 0;
    padding: 7px 5px;
    border-radius: 10px;
    background: var(--accent-softer);
    text-align: center;
}

.result-metrics b,
.result-metrics span { display: block; }

.result-metrics b {
    overflow: hidden;
    color: var(--tg-text);
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-metrics span {
    min-height: 19px;
    margin-top: 2px;
    color: var(--tg-hint);
    font-size: 8px;
    font-weight: 650;
    line-height: 1.2;
}

.result-story {
    margin-top: 11px;
    color: var(--tg-hint);
    font-size: 10.5px;
    font-weight: 550;
    line-height: 1.45;
}

.student-results-note {
    margin-top: 2px;
    color: var(--tg-hint);
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.45;
}

.student-results-loading,
.student-results-empty {
    display: grid;
    min-height: 88px;
    place-items: center;
    padding: 18px;
    border: 1px dashed var(--border-strong);
    border-radius: 15px;
    color: var(--tg-hint);
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
}

.student-modal-loading {
    display: grid;
    min-height: 180px;
    place-items: center;
    color: var(--tg-hint);
    font-size: 11px;
    font-weight: 650;
    text-align: center;
}

[data-theme="dark"] .result-status { color: #69DD96; }

@media (min-width: 700px) {
    .student-results-list {
        grid-auto-columns: initial;
        grid-auto-flow: initial;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .student-result-card { min-height: 285px; }
}

/* Ixcham ro'yxat, pagination va to'liq ma'lumotlar modali. */
.student-results-list {
    display: grid;
    grid-auto-columns: initial;
    grid-auto-flow: initial;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
    padding: 0;
}

.student-result-card {
    width: 100%;
    min-height: 78px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--tg-card);
    color: var(--tg-text);
    box-shadow: none;
    text-align: left;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.student-result-card:active {
    transform: scale(.985);
    border-color: rgba(250, 107, 28, .36);
    background: var(--accent-softer);
}

.student-card-main { min-width: 0; }

.student-card-name,
.student-card-course,
.student-card-project { display: block; }

.student-card-name {
    overflow: hidden;
    color: var(--tg-text);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-card-course {
    margin-top: 1px;
    overflow: hidden;
    color: var(--tg-hint);
    font-size: 8.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-card-project {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    overflow: hidden;
    color: var(--accent);
    font-size: 9.5px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-card-project-icon {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.student-card-project-icon svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.student-card-metric {
    display: grid;
    min-width: 47px;
    gap: 1px;
    text-align: right;
}

.student-card-metric b {
    color: var(--tg-text);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
}

.student-card-metric small {
    overflow: hidden;
    color: var(--tg-hint);
    font-size: 8px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-card-arrow {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: var(--tg-hint);
}

.student-card-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.student-avatar-green { background: linear-gradient(135deg, #1FA871, #66CC9A); }
.student-avatar-rose { background: linear-gradient(135deg, #E55378, #F195A9); }
.student-avatar-teal { background: linear-gradient(135deg, #118B8B, #4DC7C0); }

.student-results-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    margin-top: 8px;
}

.results-page-button {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--tg-card);
    color: var(--tg-text);
}

.results-page-button:disabled {
    cursor: not-allowed;
    opacity: .38;
}

.results-page-button:not(:disabled):active {
    transform: scale(.93);
    color: var(--accent);
}

.results-page-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.results-page-indicator {
    min-width: 46px;
    color: var(--tg-hint);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.student-result-modal[hidden] { display: none !important; }

.student-result-modal {
    position: fixed;
    z-index: 700;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 24px;
    background: rgba(10, 19, 48, .48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.student-result-modal-open { overflow: hidden; }

.student-result-sheet {
    position: relative;
    width: min(100%, 620px);
    max-height: min(82dvh, 680px);
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: var(--tg-card);
    box-shadow: 0 -14px 42px rgba(10, 19, 48, .2);
    animation: studentResultSheetUp .24s cubic-bezier(.2, .8, .2, 1);
}

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

.student-result-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 99px;
    background: var(--border-strong);
}

.student-result-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--tg-hint);
}

.student-result-close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.student-modal-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-right: 38px;
}

.student-modal-identity > div:nth-child(2) { min-width: 0; flex: 1; }

.student-modal-identity h2 {
    overflow: hidden;
    color: var(--tg-text);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-modal-identity p {
    margin-top: 3px;
    overflow: hidden;
    color: var(--tg-hint);
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-modal-project {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--tg-bg);
}

.student-modal-project-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.student-modal-project-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.student-modal-project span,
.student-modal-project strong { display: block; }

.student-modal-project span {
    color: var(--tg-hint);
    font-size: 9px;
    font-weight: 700;
}

.student-modal-project strong {
    margin-top: 2px;
    overflow: hidden;
    color: var(--tg-text);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-modal-project-link {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 39px;
    margin-top: 2px;
    border-radius: 11px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.student-modal-project-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.student-modal-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 13px;
}

.student-modal-metrics div {
    padding: 9px 5px;
    border-radius: 11px;
    background: var(--accent-softer);
    text-align: center;
}

.student-modal-metrics b,
.student-modal-metrics span { display: block; }

.student-modal-metrics b {
    overflow: hidden;
    color: var(--tg-text);
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-modal-metrics span {
    min-height: 19px;
    margin-top: 2px;
    color: var(--tg-hint);
    font-size: 8px;
    font-weight: 650;
    line-height: 1.2;
}

.student-modal-story,
.student-modal-results { margin-top: 15px; }

.student-modal-story h3,
.student-modal-results h3 {
    color: var(--tg-text);
    font-size: 12px;
    font-weight: 850;
}

.student-modal-story p {
    margin-top: 5px;
    color: var(--tg-hint);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.student-modal-results ul {
    display: grid;
    gap: 7px;
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
}

.student-modal-results li {
    position: relative;
    padding-left: 16px;
    color: var(--tg-hint);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
}

.student-modal-results li::before {
    content: '';
    position: absolute;
    top: .42em;
    left: 1px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (min-width: 700px) {
    .student-results-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .student-result-card { min-height: 92px; }
}

/* ───────────────── PURCHASE CONFIRMATION ───────────────── */

.purchase-sheet {
    padding: 10px 16px calc(22px + env(safe-area-inset-bottom, 0px));
}

.purchase-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 17px;
}

.purchase-heading-icon {
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(250, 107, 28, .22);
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
}

.purchase-heading-icon svg { width: 20px; height: 20px; }

.purchase-eyebrow {
    margin: 0 0 2px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .62px;
    text-transform: uppercase;
}

.purchase-heading h2 {
    margin: 0;
    color: var(--tg-text);
    font-size: 18px;
    line-height: 1.16;
    font-weight: 850;
    letter-spacing: -.45px;
}

.purchase-close {
    width: 34px;
    height: 34px;
    margin-left: auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--tg-card);
    color: var(--tg-hint);
}

.purchase-close svg { width: 17px; height: 17px; }

.purchase-course-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 3px;
    margin-bottom: 14px;
    padding: 14px 15px;
    border: 1px solid rgba(250, 107, 28, .2);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-softer), var(--tg-card));
}

.purchase-course-card::after {
    content: '';
    position: absolute;
    right: -22px;
    bottom: -26px;
    width: 94px;
    height: 94px;
    border: 16px solid rgba(250, 107, 28, .08);
    border-radius: 50%;
}

.purchase-course-label,
.purchase-course-price {
    position: relative;
    z-index: 1;
    color: var(--tg-hint);
    font-size: 10px;
    font-weight: 750;
}

.purchase-course-card strong {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: var(--tg-text);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-course-price {
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
}

.purchase-intro {
    margin: 0 0 13px;
    color: var(--tg-hint);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.purchase-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.purchase-field { display: grid; gap: 5px; }
.purchase-field-wide { grid-column: 1 / -1; }

.purchase-field span {
    color: var(--tg-hint);
    font-size: 9.5px;
    font-weight: 800;
}

.purchase-field input {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 0 11px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    outline: none;
    background: var(--tg-card);
    color: var(--tg-text);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.purchase-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.purchase-form-message {
    margin: 11px 0 0;
    padding: 10px 11px;
    border-radius: 11px;
    background: rgba(239, 68, 68, .10);
    color: #c33232;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.4;
}

.purchase-form-message.success {
    background: rgba(34, 197, 94, .11);
    color: #168348;
}

.purchase-confirm-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 13px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(250, 107, 28, .2);
    font-size: 12px;
    font-weight: 850;
}

.purchase-confirm-btn svg { width: 17px; height: 17px; }
.purchase-confirm-btn:disabled { opacity: .64; cursor: wait; }

.purchase-cancel-btn {
    width: 100%;
    min-height: 35px;
    margin-top: 5px;
    background: transparent;
    color: var(--tg-hint);
    font-size: 11px;
    font-weight: 750;
}

@media (min-width: 600px) {
    .purchase-sheet { padding: 22px; }
}
