/* ============================================
   ФППР — YouTube-style
   ============================================ */

:root {
    --yt-red: #FF0000;
    --yt-red-dark: #CC0000;
    --yt-red-light: #FF4444;
    --yt-bg: #f9f9f9;
    --yt-bg-white: #ffffff;
    --yt-text: #0f0f0f;
    --yt-text-soft: #606060;
    --yt-text-muted: #909090;
    --yt-border: #e5e5e5;
    --yt-border-soft: #f1f1f1;
    --yt-chip-bg: #f2f2f2;
    --yt-chip-active: #0f0f0f;
    --yt-hover: rgba(0,0,0,0.05);
    --yt-shadow: 0 1px 2px rgba(0,0,0,0.06);
    --yt-shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
    --yt-shadow-card: 0 8px 24px rgba(0,0,0,0.12);
    --header-h: 56px;
    --sidebar-w: 240px;
    --font: 'Roboto', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--yt-text);
    background: var(--yt-bg);
    line-height: 1.4;
    overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ========= Page progress bar (YouTube loading) ========= */
.page-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--yt-red);
    z-index: 1001;
    transition: width 0.3s ease;
}

/* ========= HEADER ========= */
.yt-header {
    position: sticky;
    top: 0;
    height: var(--header-h);
    background: var(--yt-bg-white);
    border-bottom: 1px solid var(--yt-border-soft);
    z-index: 100;
}

.yt-header-inner {
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 100%;
}

.yt-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.yt-menu-btn, .yt-icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yt-text);
    transition: background 0.15s ease;
    position: relative;
}

.yt-menu-btn:hover, .yt-icon-btn:hover { background: var(--yt-hover); }

.yt-menu-btn svg, .yt-icon-btn svg { width: 24px; height: 24px; }

.yt-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--yt-text);
    user-select: none;
}

.yt-logo-icon-mark {
    height: 22px;
    width: auto;
    display: block;
}

.yt-logo-text {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--yt-text);
    margin-left: 2px;
}

.yt-logo-text sup {
    font-size: 10px;
    color: var(--yt-text-muted);
    margin-left: 2px;
    font-weight: 500;
    top: -7px;
}

.yt-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--yt-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.4;
}

/* Search */
.yt-search-wrap {
    flex: 1;
    max-width: 728px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.yt-search {
    flex: 1;
    max-width: 640px;
    display: flex;
    border: 1px solid var(--yt-border);
    border-radius: 40px;
    overflow: hidden;
    height: 40px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yt-search:focus-within {
    border-color: #1c62b9;
    box-shadow: inset 0 0 0 1px #1c62b9;
}

.yt-search-input {
    flex: 1;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: var(--font);
    background: transparent;
    color: var(--yt-text);
    min-width: 0;
}

.yt-search-btn {
    width: 64px;
    background: var(--yt-bg);
    border-left: 1px solid var(--yt-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yt-text-soft);
    transition: background 0.15s ease;
}

.yt-search-btn:hover { background: #e5e5e5; }
.yt-search-btn svg { width: 22px; height: 22px; }

.yt-voice-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--yt-chip-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yt-text);
    transition: background 0.15s ease;
}
.yt-voice-btn:hover { background: #e5e5e5; }
.yt-voice-btn svg { width: 22px; height: 22px; }

.yt-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.yt-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yt-red), #ff6b6b);
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-left: 8px;
}

.yt-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(255,0,0,0.15);
}

/* ========= LAYOUT ========= */
.yt-layout {
    display: flex;
    min-height: calc(100vh - var(--header-h));
}

/* ========= SIDEBAR ========= */
.yt-sidebar {
    width: var(--sidebar-w);
    background: var(--yt-bg-white);
    flex-shrink: 0;
    padding: 12px 0;
    height: calc(100vh - var(--header-h));
    position: sticky;
    top: var(--header-h);
    overflow-y: auto;
    border-right: 1px solid var(--yt-border-soft);
}

.yt-sidebar nav { padding: 0 12px; }

.yt-sidebar-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 12px;
    height: 40px;
    border-radius: 10px;
    color: var(--yt-text);
    transition: background 0.15s ease;
    font-size: 14px;
    margin-bottom: 1px;
}

.yt-sidebar-item:hover { background: var(--yt-hover); }
.yt-sidebar-item.active {
    background: var(--yt-chip-bg);
    font-weight: 600;
}

.yt-sidebar-item svg {
    width: 24px; height: 24px;
    flex-shrink: 0;
}

.yt-sidebar-sep {
    height: 1px;
    background: var(--yt-border-soft);
    margin: 12px 0;
}

.yt-sidebar-section {
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
}

.yt-sidebar-footer {
    padding: 16px 12px;
    font-size: 12px;
    color: var(--yt-text-muted);
    line-height: 1.6;
}

/* ========= MAIN ========= */
.yt-main {
    flex: 1;
    padding: 24px 40px;
    max-width: 100%;
    min-width: 0;
}

/* ========= HERO BANNER ========= */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0808 50%, #4a0000 100%);
    border-radius: 16px;
    padding: 56px 56px;
    color: white;
    overflow: hidden;
    margin-bottom: 32px;
    min-height: 280px;
}

.hero-bg-animated {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,0,0,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,100,0,0.2) 0%, transparent 50%);
    animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,0,0,0.4) 0%, transparent 60%);
    border-radius: 50%;
    animation: shapeFloat 8s ease-in-out infinite;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(-30px, 30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--yt-red);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,0,0.7); }
    50% { box-shadow: 0 0 0 8px rgba(255,0,0,0); }
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-title-accent {
    color: var(--yt-red-light);
    position: relative;
    display: inline-block;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--yt-red);
    border-radius: 2px;
    animation: underlineGrow 1.5s ease-out 0.5s backwards;
}

@keyframes underlineGrow {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-stat-num {
    font-size: 32px;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    background: var(--yt-red);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255,0,0,0.3);
}

.hero-cta:hover {
    background: var(--yt-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,0,0,0.4);
}

.hero-cta:active { transform: translateY(0); }

/* ========= CHIPS ========= */
.chip-row {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
    padding: 8px 14px;
    background: var(--yt-chip-bg);
    color: var(--yt-text);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.chip:hover { background: #e5e5e5; }

.chip-active {
    background: var(--yt-chip-active);
    color: white;
}

.chip-active:hover { background: #272727; }

/* ========= SECTION TITLE ========= */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--yt-text);
}

/* ========= STEPS GRID (YouTube video cards) ========= */
.steps-section { margin-bottom: 40px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.step-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.step-card:hover { transform: translateY(-2px); }

.step-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 12px;
}

.step-thumb-1 {
    background: linear-gradient(135deg, #ff0000 0%, #b80000 100%);
}
.step-thumb-2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #404040 100%);
}
.step-thumb-3 {
    background: linear-gradient(135deg, #ff4444 0%, #800020 100%);
}

.step-icon {
    width: 80px;
    height: 80px;
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon { transform: scale(1.15) rotate(-5deg); }

.step-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.step-meta h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--yt-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.step-meta p {
    font-size: 13px;
    color: var(--yt-text-soft);
}

/* ========= FORM SECTION (watch page style) ========= */
.form-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--yt-shadow);
}

.form-watch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--yt-border-soft);
    flex-wrap: wrap;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--yt-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.form-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--yt-text-soft);
    font-size: 13px;
    flex-wrap: wrap;
}

.form-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-meta-item:not(:last-child)::after {
    content: '•';
    margin-left: 8px;
    color: var(--yt-text-muted);
}

.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--yt-red);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.form-meta-item strong { color: var(--yt-text); }

.form-actions-top {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--yt-chip-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yt-text);
    transition: all 0.15s ease;
}

.action-btn:hover { background: #e5e5e5; transform: scale(1.05); }
.action-btn.active { color: var(--yt-red); background: rgba(255,0,0,0.1); }
.action-btn svg { width: 22px; height: 22px; }

/* Form progress */
.form-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.form-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--yt-border);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.form-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yt-red), #ff6b6b);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.form-progress-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(30px); }
}

.form-progress-text {
    font-size: 13px;
    color: var(--yt-text-soft);
    white-space: nowrap;
    font-weight: 500;
}

/* ========= FORM BLOCKS ========= */
.form-block {
    margin-bottom: 32px;
}

.form-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.form-block-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--yt-text);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.form-block-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--yt-text);
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--yt-text-soft);
}

.field-req {
    font-size: 11px;
    color: var(--yt-red);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 20px; height: 20px;
    color: var(--yt-text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.input-wrap input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--yt-text);
    background: var(--yt-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrap input::placeholder {
    color: var(--yt-text-muted);
}

.input-wrap input:hover { background: #f0f0f0; }

.input-wrap input:focus {
    background: white;
    border-color: var(--yt-red);
    padding-right: 44px;
}

.input-wrap input:focus ~ .input-icon { color: var(--yt-red); }

.input-check {
    position: absolute;
    right: 14px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #2ecc71;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.input-check svg { width: 16px; height: 16px; }

.input-wrap.valid .input-check {
    opacity: 1;
    transform: scale(1);
}

.input-wrap.invalid input {
    border-color: var(--yt-red);
    background: rgba(255,0,0,0.04);
}

.input-wrap.invalid .input-icon { color: var(--yt-red); }

.field-error {
    font-size: 12px;
    color: var(--yt-red);
    margin-top: 6px;
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.field-error:not(:empty)::before {
    content: '⚠';
    font-size: 13px;
}

/* ========= OPTIONS (как карточки видео) ========= */
.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.option-card {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    border: 2px solid var(--yt-border-soft);
    transition: all 0.2s ease;
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--yt-shadow-hover);
    border-color: var(--yt-border);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.option-card input[type="radio"]:checked + .option-thumb + .option-meta,
.option-card:has(input:checked) {
    border-color: var(--yt-red);
}

.option-card:has(input:checked) {
    box-shadow: 0 0 0 4px rgba(255,0,0,0.12), 0 8px 24px rgba(255,0,0,0.15);
}

.option-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-thumb-bg {
    position: absolute;
    inset: 0;
}

.option-thumb-free .option-thumb-bg {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.option-thumb-paid .option-thumb-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.option-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
    z-index: 1;
}

.option-art {
    position: relative;
    z-index: 2;
    width: 75%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.option-card:hover .option-art {
    transform: scale(1.08) rotate(-2deg);
}

.option-tag {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 3;
}

.option-tag-free {
    background: #2ecc71;
}

.option-tag-paid {
    background: var(--yt-red);
}

.option-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.25s ease;
    z-index: 4;
    pointer-events: none;
}

.option-play svg {
    width: 60px; height: 60px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.option-card:hover .option-play {
    background: rgba(0,0,0,0.25);
}

.option-card:hover .option-play svg {
    opacity: 1;
    transform: scale(1);
}

.option-meta {
    padding: 14px 16px 18px;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--yt-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.option-channel-name {
    font-size: 13px;
    color: var(--yt-text-soft);
    display: block;
    margin-bottom: 6px;
}

.option-stats {
    font-size: 13px;
    color: var(--yt-text-muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.option-stats span:first-child {
    font-weight: 700;
    color: var(--yt-text);
}

/* ========= CONSENT ========= */
.consent-box {
    background: var(--yt-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-fake-check {
    width: 22px; height: 22px;
    border: 2px solid var(--yt-text-muted);
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: white;
}

.consent-fake-check svg {
    width: 16px; height: 16px;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-row input:checked + .consent-fake-check {
    background: var(--yt-red);
    border-color: var(--yt-red);
}

.consent-row input:checked + .consent-fake-check svg {
    opacity: 1;
    transform: scale(1);
}

.consent-text {
    font-size: 13px;
    color: var(--yt-text-soft);
    line-height: 1.5;
}

/* ========= SUBMIT ========= */
.form-submit {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--yt-red);
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:hover {
    background: var(--yt-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,0,0,0.4);
}

.btn-primary:active::before {
    width: 300px; height: 300px;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary svg { position: relative; z-index: 1; }
.btn-primary .btn-text { position: relative; z-index: 1; }

.submit-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--yt-text-muted);
}

.submit-note svg { color: var(--yt-text-muted); flex-shrink: 0; }

.form-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255,0,0,0.08);
    border-left: 4px solid var(--yt-red);
    border-radius: 8px;
    color: var(--yt-red-dark);
    font-size: 13px;
    font-weight: 500;
}

/* ========= LOADING ========= */
.loading {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ========= SUCCESS ========= */
.success-box {
    text-align: center;
    padding: 48px 32px;
    animation: successIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.success-ripple {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-ripple::before, .success-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #2ecc71;
    animation: ripple 2s ease-out infinite;
}

.success-ripple::after { animation-delay: 1s; }

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.success-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #2ecc71;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.success-icon svg { width: 32px; height: 32px; }

.success-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--yt-text);
}

.success-text {
    font-size: 15px;
    color: var(--yt-text-soft);
    line-height: 1.5;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.success-actions {
    background: var(--yt-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border-left: 4px solid var(--yt-red);
}

.success-actions h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--yt-text);
}

.success-actions p {
    font-size: 14px;
    color: var(--yt-text-soft);
    margin-bottom: 8px;
    line-height: 1.5;
}

.success-actions a {
    color: var(--yt-red);
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
}

.success-actions a:hover { text-decoration: underline; }

.success-actions .contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.success-actions .contact-row strong {
    font-size: 18px;
    color: var(--yt-text);
    font-weight: 700;
}

.btn-secondary {
    background: var(--yt-bg);
    color: var(--yt-text);
    border: 1px solid var(--yt-border);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.btn-secondary:hover { background: #e5e5e5; }

/* ========= FOOTER ========= */
.yt-footer {
    padding: 32px 0;
    border-top: 1px solid var(--yt-border-soft);
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--yt-text);
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 13px;
    color: var(--yt-text-soft);
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ========= TOAST ========= */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: var(--yt-text);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    max-width: 90%;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ========= ANIMATIONS ========= */
.hero-banner, .chip-row, .steps-section, .form-section {
    animation: fadeUp 0.6s ease-out backwards;
}
.hero-banner { animation-delay: 0.05s; }
.chip-row    { animation-delay: 0.15s; }
.steps-section { animation-delay: 0.25s; }
.form-section { animation-delay: 0.35s; }

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

/* ========= RESPONSIVE ========= */
@media (max-width: 1100px) {
    .yt-sidebar { display: none; }
    .yt-main { padding: 20px; }
}

@media (max-width: 768px) {
    .yt-header-inner { padding: 0 12px; gap: 12px; }
    .yt-search-wrap { display: none; }
    .yt-voice-btn { display: none; }
    .yt-main { padding: 16px; }
    
    .hero-banner {
        padding: 32px 24px;
        min-height: auto;
    }
    
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 24px; }
    
    .form-section { padding: 20px; border-radius: 12px; }
    .form-watch-header { flex-direction: column; gap: 12px; }
    .form-actions-top { align-self: flex-end; }
    
    .field-grid { grid-template-columns: 1fr; }
    .option-grid { grid-template-columns: 1fr; }
    
    .form-title { font-size: 18px; }
    .form-block-title { font-size: 16px; }
    
    .btn-primary { width: 100%; justify-content: center; }
    .submit-note { font-size: 12px; }
    
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    
    .success-title { font-size: 22px; }
    .success-box { padding: 32px 16px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        width: 100%;
    }
    .hero-stat-num { font-size: 20px; }
    .hero-stat-label { font-size: 10px; }
}
