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

body {
    background: #0d0d0d;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.yte-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.yte-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: #0d0d0d;
    position: sticky;
    top: 0;
    z-index: 10;
}

.yte-topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FBC10C;
}

.yte-topbar-logo {
    color: #FBC10C;
    flex-shrink: 0;
}

.yte-topbar-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.yte-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 60px;
    gap: 14px;
}

.yte-card {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #161616;
    overflow: hidden;
}

.yte-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.yte-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(251, 193, 12, 0.12);
    border: 1px solid rgba(251, 193, 12, 0.3);
    color: #FBC10C;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.yte-step-badge-green {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.28);
    color: #4ade80;
}

.yte-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.yte-video-section,
.yte-action-section,
.yte-email-section {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
}

.yte-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #0a0a0a;
}

.yte-target-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
}

.yte-target-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.yte-target-heading,
.yte-input-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.yte-target-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yte-target-url {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.52);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yte-btn-primary,
.yte-btn-next,
.yte-btn-secondary {
    min-height: 46px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.yte-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    background: #FBC10C;
    color: #0d0d0d;
}

.yte-btn-primary:hover {
    background: #f5b800;
    transform: translateY(-1px);
}

.yte-email-section {
    display: none;
    gap: 12px;
}

.yte-email-input {
    width: 100%;
    min-height: 48px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1e1e1e;
    color: #fff;
    padding: 0 14px;
    font-size: 1rem;
    outline: none;
}

.yte-email-input:focus {
    border-color: rgba(251, 193, 12, 0.55);
}

.yte-email-actions {
    display: flex;
    gap: 10px;
}

.yte-btn-next {
    flex: 2;
    padding: 12px 16px;
    border: 1px solid rgba(74, 222, 128, 0.28);
    background: rgba(74, 222, 128, 0.08);
    color: #4ade80;
}

.yte-btn-next:hover {
    background: rgba(74, 222, 128, 0.14);
    transform: translateY(-1px);
}

.yte-btn-secondary {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.yte-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.yte-btn-primary:disabled,
.yte-btn-next:disabled,
.yte-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.yte-empty {
    width: 100%;
    max-width: 720px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #161616;
    text-align: center;
}

.yte-empty-icon {
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 4px;
}

.yte-empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.yte-empty-sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.5;
    max-width: 360px;
}

.yte-status {
    width: 100%;
    max-width: 720px;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 4px;
    min-height: 20px;
}

.yte-status-success { color: #4ade80; }
.yte-status-error   { color: #f87171; }
.yte-status-info    { color: #60a5fa; }

@media (max-width: 720px) {
    .yte-main {
        padding: 20px 12px 48px;
    }

    .yte-video-section,
    .yte-target-row,
    .yte-action-section,
    .yte-email-section {
        padding: 16px;
    }

    .yte-topbar {
        padding: 12px 16px;
    }

    .yte-email-actions {
        flex-direction: column;
    }

    .yte-target-name,
    .yte-target-url {
        white-space: normal;
        word-break: break-word;
    }
}
