/* ═══════════════════════════════════════════════════════════════════
   PixelSpot Support — Apple Support-inspired design
   Clone of https://support.apple.com/en-in
   ═══════════════════════════════════════════════════════════════════ */

/* ── Base ── */
.sp-page {
    background: #fff;
    color: #1d1d1f;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.sp-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}
.sp-wrap--wide {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ── Hero ── */
.sp-hero {
    padding: 160px 0 50px;
    text-align: center;
}
.sp-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071e3, #40a9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 4px 24px rgba(0,113,227,0.18);
}
.sp-hero-logo i {
    font-size: 32px;
    color: #fff;
}
.sp-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #1d1d1f;
    margin: 0 0 12px;
}
.sp-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #86868b;
    font-weight: 400;
    line-height: 1.47;
    max-width: 540px;
    margin: 0 auto;
}

/* ── Search Bar ── */
.sp-search {
    max-width: 680px;
    margin: 40px auto 0;
    position: relative;
}
.sp-search input {
    width: 100%;
    background: #f5f5f7;
    border: none;
    border-radius: 12px;
    padding: 16px 20px 16px 52px;
    font-size: 1.05rem;
    font-family: inherit;
    color: #1d1d1f;
    transition: background .3s, box-shadow .3s;
    outline: none;
}
.sp-search input:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,113,227,0.15), 0 2px 12px rgba(0,0,0,0.06);
}
.sp-search input::placeholder { color: #aeaeb2; }
.sp-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #86868b;
    pointer-events: none;
}
.sp-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    z-index: 50;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}
.sp-search-results.active { display: block; }
.sp-search-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: #1d1d1f;
    transition: background .15s;
    cursor: pointer;
}
.sp-search-result:hover { background: #f5f5f7; }
.sp-search-result i {
    font-size: 1rem;
    color: #0071e3;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.sp-search-result span { font-size: 0.95rem; }
.sp-search-no { padding: 20px; text-align: center; color: #86868b; font-size: 0.95rem; }

/* ── Product Category Grid (Apple icon cards) ── */
.sp-products {
    padding: 50px 0 60px;
}
.sp-products-heading {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #86868b;
    margin: 0 0 28px;
    text-align: center;
}
.sp-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.sp-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1d1d1f;
    padding: 30px 12px 24px;
    border-radius: 18px;
    background: #f5f5f7;
    transition: transform .3s, box-shadow .3s, background .3s;
    cursor: pointer;
    text-align: center;
}
.sp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    background: #fff;
}
.sp-product-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 2rem;
    color: #1d1d1f;
}
.sp-product-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1d1d1f;
}

/* ── Divider ── */
.sp-divider {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    height: 1px;
    background: #d2d2d7;
}

/* ── Support Topics — Apple "Support Tools" style ── */
.sp-topics {
    padding: 70px 0;
}
.sp-topics-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin: 0 0 12px;
    text-align: center;
}
.sp-topics-sub {
    font-size: 1.05rem;
    color: #86868b;
    text-align: center;
    margin: 0 0 48px;
    line-height: 1.47;
}
.sp-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.sp-topic-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
    border-radius: 18px;
    background: #f5f5f7;
    text-decoration: none;
    color: inherit;
    transition: transform .3s, box-shadow .3s, background .3s;
    cursor: pointer;
}
.sp-topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    background: #fff;
}
.sp-topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0071e3, #40a9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.sp-topic-icon i { font-size: 1.15rem; color: #fff; }
.sp-topic-icon.green { background: linear-gradient(135deg, #30d158, #59d97e); }
.sp-topic-icon.orange { background: linear-gradient(135deg, #ff9f0a, #ffb340); }
.sp-topic-icon.purple { background: linear-gradient(135deg, #bf5af2, #d084f5); }
.sp-topic-icon.red { background: linear-gradient(135deg, #ff3b30, #ff6961); }
.sp-topic-icon.teal { background: linear-gradient(135deg, #5ac8fa, #7ad4fb); }
.sp-topic-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.sp-topic-card p {
    font-size: 0.88rem;
    color: #86868b;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}
.sp-topic-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0071e3;
    margin-top: 16px;
    text-decoration: none;
    transition: gap .2s;
}
.sp-topic-card:hover .sp-topic-link { gap: 8px; }

/* ── Repair & Service Section (Apple "Apple Repair and Service" style) ── */
.sp-repair {
    padding: 80px 0;
    background: #f5f5f7;
}
.sp-repair-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sp-repair-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin: 0 0 16px;
    line-height: 1.08;
}
.sp-repair-content p {
    font-size: 1.05rem;
    color: #6e6e73;
    line-height: 1.58;
    margin: 0 0 24px;
}
.sp-repair-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 980px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background .3s;
}
.sp-repair-btn:hover { background: #0077ed; }
.sp-repair-visual {
    border-radius: 22px;
    overflow: hidden;
    background: #e8e8ed;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sp-repair-visual i {
    font-size: 5rem;
    color: #d2d2d7;
}
.sp-repair-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Third-Party Service Section ── */
.sp-third-party {
    padding: 80px 0;
}
.sp-third-party-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sp-third-party-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3cd;
    color: #856404;
    border-radius: 980px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sp-third-party-badge i { font-size: 0.85rem; }
.sp-third-party h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin: 0 0 16px;
    line-height: 1.08;
}
.sp-third-party p {
    font-size: 1.05rem;
    color: #6e6e73;
    line-height: 1.58;
    margin: 0 0 20px;
}
.sp-third-party-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.sp-third-party-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #1d1d1f;
    line-height: 1.47;
}
.sp-third-party-list li i {
    color: #30d158;
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.sp-third-party-visual {
    border-radius: 22px;
    overflow: hidden;
    background: #e8e8ed;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sp-third-party-visual i {
    font-size: 5rem;
    color: #d2d2d7;
}
.sp-third-party-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Warranty Check Section ── */
.sp-warranty {
    padding: 70px 0;
    background: #f5f5f7;
}
.sp-warranty-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.sp-warranty h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin: 0 0 10px;
}
.sp-warranty p {
    font-size: 1.05rem;
    color: #86868b;
    line-height: 1.47;
    margin: 0 0 36px;
}
.sp-warranty-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}
.sp-warranty-form input {
    flex: 1;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: #1d1d1f;
    outline: none;
    transition: border-color .3s, box-shadow .3s;
}
.sp-warranty-form input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}
.sp-warranty-form input::placeholder { color: #aeaeb2; }
.sp-warranty-form button {
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .3s;
}
.sp-warranty-form button:hover { background: #0077ed; }
.sp-warranty-result {
    display: none;
    margin-top: 28px;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sp-warranty-result.active { display: block; }
.sp-warranty-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.sp-warranty-status i { font-size: 1.3rem; }
.sp-warranty-status.valid i { color: #30d158; }
.sp-warranty-status.expired i { color: #ff3b30; }
.sp-warranty-status span { font-size: 1.05rem; font-weight: 600; color: #1d1d1f; }
.sp-warranty-detail { font-size: 0.92rem; color: #6e6e73; line-height: 1.58; }

/* ── Service Flow Steps ── */
.sp-flow {
    padding: 80px 0;
}
.sp-flow h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin: 0 0 12px;
    text-align: center;
}
.sp-flow-sub {
    font-size: 1.05rem;
    color: #86868b;
    text-align: center;
    margin: 0 0 54px;
    line-height: 1.47;
}
.sp-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.sp-flow-step {
    text-align: center;
    padding: 28px 16px;
    position: relative;
}
.sp-flow-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0071e3;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 auto 18px;
}
.sp-flow-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
}
.sp-flow-step p {
    font-size: 0.85rem;
    color: #86868b;
    margin: 0;
    line-height: 1.47;
}

/* ── FAQ Accordion ── */
.sp-faq {
    padding: 80px 0;
    background: #f5f5f7;
}
.sp-faq h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin: 0 0 40px;
    text-align: center;
}
.sp-faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.sp-faq-item {
    border-bottom: 1px solid #d2d2d7;
}
.sp-faq-item:first-child { border-top: 1px solid #d2d2d7; }
.sp-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.sp-faq-q h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.01em;
    flex: 1;
    padding-right: 16px;
}
.sp-faq-chevron {
    font-size: 0.9rem;
    color: #86868b;
    transition: transform .3s;
    flex-shrink: 0;
}
.sp-faq-item.open .sp-faq-chevron { transform: rotate(180deg); }
.sp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}
.sp-faq-item.open .sp-faq-a {
    max-height: 600px;
    padding-bottom: 22px;
}
.sp-faq-a p {
    font-size: 0.95rem;
    color: #6e6e73;
    line-height: 1.58;
    margin: 0;
}

/* ── Contact CTA Section ── */
.sp-contact-cta {
    padding: 80px 0;
    text-align: center;
}
.sp-contact-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin: 0 0 14px;
}
.sp-contact-cta p {
    font-size: 1.05rem;
    color: #86868b;
    margin: 0 0 36px;
    line-height: 1.47;
}
.sp-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}
.sp-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    border-radius: 18px;
    background: #f5f5f7;
    text-decoration: none;
    color: inherit;
    transition: transform .3s, box-shadow .3s, background .3s;
}
.sp-contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    background: #fff;
}
.sp-contact-card i {
    font-size: 1.6rem;
    color: #0071e3;
    margin-bottom: 14px;
}
.sp-contact-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 6px;
}
.sp-contact-card span {
    font-size: 0.82rem;
    color: #86868b;
    text-align: center;
    line-height: 1.4;
}

/* ── Service Programmes (bottom links bar) ── */
.sp-programmes {
    padding: 60px 0;
    background: #f5f5f7;
}
.sp-programmes h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 20px;
    text-align: center;
}
.sp-programmes-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}
.sp-programmes-links a {
    font-size: 0.88rem;
    color: #0071e3;
    text-decoration: none;
    transition: color .2s;
}
.sp-programmes-links a:hover { color: #0077ed; text-decoration: underline; }

/* ── Animations ── */
.sp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.sp-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.sp-stagger { transition-delay: 0.1s; }
.sp-stagger:nth-child(2) { transition-delay: 0.18s; }
.sp-stagger:nth-child(3) { transition-delay: 0.26s; }
.sp-stagger:nth-child(4) { transition-delay: 0.34s; }
.sp-stagger:nth-child(5) { transition-delay: 0.42s; }
.sp-stagger:nth-child(6) { transition-delay: 0.50s; }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 900px) {
    .sp-product-grid { grid-template-columns: repeat(3, 1fr); }
    .sp-topics-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-repair-inner,
    .sp-third-party-inner { grid-template-columns: 1fr; gap: 36px; }
    .sp-flow-steps { grid-template-columns: repeat(2, 1fr); }
    .sp-contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .sp-hero { padding: 140px 0 40px; }
    .sp-hero-logo { width: 56px; height: 56px; margin-bottom: 22px; }
    .sp-hero-logo i { font-size: 24px; }
    .sp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sp-product-card { padding: 22px 10px 18px; }
    .sp-product-card-icon { width: 44px; height: 44px; font-size: 1.5rem; margin-bottom: 10px; }
    .sp-product-card-name { font-size: 0.76rem; }
    .sp-topics-grid { grid-template-columns: 1fr; }
    .sp-topic-card { padding: 24px 22px; }
    .sp-repair-visual,
    .sp-third-party-visual { aspect-ratio: 16/9; }
    .sp-flow-steps { grid-template-columns: 1fr 1fr; gap: 16px; }
    .sp-flow-step { padding: 20px 10px; }
    .sp-warranty-form { flex-direction: column; }
    .sp-warranty-form button { width: 100%; }
    .sp-contact-grid { grid-template-columns: 1fr; }
    .sp-search input { padding: 14px 16px 14px 44px; font-size: 0.95rem; }
    .sp-search-icon { left: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SERVICE TICKET MODAL — Full-screen wizard
   ═══════════════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.tk-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.tk-overlay.active { display: flex; }

/* ── Modal ── */
.tk-modal {
    background: #fff;
    border-radius: 22px;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: tkSlideUp .4s ease;
}
@keyframes tkSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.tk-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #86868b;
    z-index: 10;
    transition: background .2s;
}
.tk-close:hover { background: #e8e8ed; }

/* ── Progress bar ── */
.tk-progress {
    display: flex;
    gap: 6px;
    padding: 24px 28px 0;
}
.tk-progress-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e8e8ed;
    transition: background .3s;
}
.tk-progress-dot.active { background: #0071e3; }
.tk-progress-dot.done { background: #30d158; }

/* ── Step content ── */
.tk-step {
    display: none;
    padding: 28px 28px 32px;
}
.tk-step.active { display: block; }
.tk-step-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0071e3;
    margin: 0 0 8px;
}
.tk-step h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin: 0 0 6px;
}
.tk-step-desc {
    font-size: 0.92rem;
    color: #86868b;
    margin: 0 0 28px;
    line-height: 1.47;
}

/* ── Product selection grid ── */
.tk-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.tk-product-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px 16px;
    border-radius: 14px;
    border: 2px solid #e8e8ed;
    background: #fafafa;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
    text-align: center;
}
.tk-product-opt:hover { border-color: #c7c7cc; transform: translateY(-2px); }
.tk-product-opt.selected { border-color: #0071e3; background: #f0f4ff; }
.tk-product-opt i { font-size: 1.5rem; color: #1d1d1f; margin-bottom: 10px; }
.tk-product-opt.selected i { color: #0071e3; }
.tk-product-opt span { font-size: 0.78rem; font-weight: 600; color: #1d1d1f; line-height: 1.3; }

/* ── Third-party toggle ── */
.tk-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fef3cd;
}
.tk-toggle-row span { font-size: 0.88rem; font-weight: 500; color: #856404; flex: 1; }
.tk-toggle {
    width: 46px;
    height: 26px;
    border-radius: 13px;
    background: #c7c7cc;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background .3s;
    flex-shrink: 0;
}
.tk-toggle.on { background: #0071e3; }
.tk-toggle::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.tk-toggle.on::after { transform: translateX(20px); }

/* ── Media upload ── */
.tk-upload-zone {
    border: 2px dashed #d2d2d7;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}
.tk-upload-zone:hover { border-color: #0071e3; background: #f0f4ff; }
.tk-upload-zone.dragover { border-color: #0071e3; background: #f0f4ff; }
.tk-upload-zone i { font-size: 2rem; color: #86868b; margin-bottom: 12px; }
.tk-upload-zone p { font-size: 0.92rem; color: #86868b; margin: 0 0 4px; }
.tk-upload-zone small { font-size: 0.78rem; color: #aeaeb2; }
.tk-upload-zone input { display: none; }
.tk-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.tk-upload-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f5f5f7;
}
.tk-upload-thumb img,
.tk-upload-thumb video { width: 100%; height: 100%; object-fit: cover; }
.tk-upload-thumb .tk-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tk-upload-thumb .tk-thumb-video {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.55rem;
    font-weight: 600;
}

/* ── Issue type chips ── */
.tk-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.tk-chip {
    padding: 8px 16px;
    border-radius: 980px;
    border: 1.5px solid #e8e8ed;
    background: #fafafa;
    font-size: 0.82rem;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.tk-chip:hover { border-color: #c7c7cc; }
.tk-chip.selected { border-color: #0071e3; background: #0071e3; color: #fff; }

/* ── Form fields ── */
.tk-field { margin-bottom: 20px; }
.tk-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6e6e73;
    margin-bottom: 8px;
}
.tk-field input,
.tk-field textarea {
    width: 100%;
    background: #f5f5f7;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1d1d1f;
    outline: none;
    transition: border-color .3s, background .3s;
}
.tk-field input:focus,
.tk-field textarea:focus {
    border-color: #0071e3;
    background: #fff;
}
.tk-field input::placeholder,
.tk-field textarea::placeholder { color: #aeaeb2; }
.tk-field textarea { resize: vertical; min-height: 90px; }
.tk-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Map picker ── */
.tk-map-wrap {
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 12px;
    border: 1.5px solid #e8e8ed;
    position: relative;
}
.tk-map-wrap #tkMap { width: 100%; height: 100%; }
.tk-map-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 500;
    font-family: inherit;
}
.tk-location-text {
    font-size: 0.82rem;
    color: #30d158;
    margin-top: 8px;
    display: none;
}
.tk-location-text.active { display: flex; align-items: center; gap: 6px; }

/* ── Action buttons ── */
.tk-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 28px 28px;
    gap: 12px;
}
.tk-btn-back {
    background: none;
    border: none;
    color: #0071e3;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 12px 0;
}
.tk-btn-back:hover { text-decoration: underline; }
.tk-btn-next {
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 980px;
    padding: 12px 32px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .3s, opacity .3s;
    margin-left: auto;
}
.tk-btn-next:hover { background: #0077ed; }
.tk-btn-next:disabled { opacity: 0.4; cursor: not-allowed; }
.tk-btn-next.submitting { pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════
   TICKET SUCCESS + TRACKER
   ═══════════════════════════════════════════════════════════════════ */

.tk-success {
    display: none;
    padding: 48px 28px;
    text-align: center;
}
.tk-success.active { display: block; }
.tk-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #30d158;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.tk-success-icon i { font-size: 1.6rem; color: #fff; }
.tk-success h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
}
.tk-success p { font-size: 0.95rem; color: #86868b; margin: 0 0 6px; line-height: 1.47; }
.tk-success-id {
    display: inline-block;
    background: #f5f5f7;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0071e3;
    letter-spacing: 0.02em;
    margin: 16px 0 24px;
    font-family: 'SF Mono', 'Menlo', monospace;
}
.tk-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ── Tracker Section ── */
.sp-tracker {
    padding: 70px 0;
}
.sp-tracker h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin: 0 0 10px;
    text-align: center;
}
.sp-tracker > .sp-wrap > p {
    font-size: 1.05rem;
    color: #86868b;
    text-align: center;
    margin: 0 0 32px;
    line-height: 1.47;
}
.tk-track-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 40px;
}
.tk-track-form input {
    flex: 1;
    background: #f5f5f7;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: 'SF Mono', 'Menlo', monospace;
    color: #1d1d1f;
    outline: none;
    transition: border-color .3s;
    text-transform: uppercase;
}
.tk-track-form input:focus { border-color: #0071e3; background: #fff; }
.tk-track-form input::placeholder { color: #aeaeb2; text-transform: none; font-family: inherit; }
.tk-track-form button {
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .3s;
}
.tk-track-form button:hover { background: #0077ed; }

/* ── Tracker result card ── */
.tk-track-result {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}
.tk-track-result.active { display: block; }
.tk-track-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}
.tk-track-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}
.tk-status-badge {
    padding: 5px 14px;
    border-radius: 980px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tk-status-badge.received { background: #e3f2fd; color: #0071e3; }
.tk-status-badge.new { background: #e3f2fd; color: #0071e3; }
.tk-status-badge.accepted { background: #e8f5e9; color: #2e7d32; }
.tk-status-badge.technician { background: #fff3e0; color: #e65100; }
.tk-status-badge.waiting { background: #fff3e0; color: #f57c00; }
.tk-status-badge.in-progress { background: #fce4ec; color: #c62828; }
.tk-status-badge.completed { background: #e8f5e9; color: #1b5e20; }
.tk-status-badge.cancelled { background: #f5f5f7; color: #86868b; }
.tk-status-badge.closed { background: #f5f5f7; color: #86868b; }

.tk-track-info {
    padding: 20px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.tk-track-info-item { }
.tk-track-info-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #86868b; margin-bottom: 4px; }
.tk-track-info-value { font-size: 0.92rem; font-weight: 500; color: #1d1d1f; }

/* ── Timeline ── */
.tk-timeline {
    padding: 24px 28px;
}
.tk-timeline h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #86868b;
    margin: 0 0 20px;
}
.tk-timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    position: relative;
}
.tk-timeline-item:last-child { padding-bottom: 0; }
.tk-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d2d2d7;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}
.tk-timeline-item:first-child .tk-timeline-dot { background: #0071e3; }
.tk-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 18px;
    width: 2px;
    height: calc(100% - 6px);
    background: #e8e8ed;
}
.tk-timeline-content h5 { font-size: 0.92rem; font-weight: 600; color: #1d1d1f; margin: 0 0 3px; }
.tk-timeline-content p { font-size: 0.82rem; color: #86868b; margin: 0 0 2px; line-height: 1.4; }
.tk-timeline-content time { font-size: 0.72rem; color: #aeaeb2; }

.tk-track-error {
    display: none;
    text-align: center;
    padding: 32px;
    color: #ff3b30;
    font-size: 0.95rem;
}
.tk-track-error.active { display: block; }

/* ── Responsive tickets ── */
@media (max-width: 600px) {
    .tk-modal { border-radius: 16px; max-height: 95vh; }
    .tk-step { padding: 22px 20px 24px; }
    .tk-actions { padding: 0 20px 24px; }
    .tk-product-grid { grid-template-columns: repeat(2, 1fr); }
    .tk-field-row { grid-template-columns: 1fr; }
    .tk-track-form { flex-direction: column; }
    .tk-track-form button { width: 100%; }
    .tk-track-info { grid-template-columns: 1fr; gap: 12px; }
    .tk-success-actions { flex-direction: column; }
}

@keyframes tkShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}


/* ═══════════════════════════════════════════════════════════════════
   AI ISSUE DETECTOR — Apple Vision-inspired Premium
   ═══════════════════════════════════════════════════════════════════ */
.sp-ai-detector {
    padding: 20px 0 100px;
    position: relative;
}

/* ── Intro ── */
.aid-intro {
    text-align: center;
    margin-bottom: 40px;
}
.aid-dot-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px 7px 12px;
    border-radius: 980px;
    background: #1d1d1f;
    color: #f5f5f7;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.aid-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34C759;
    box-shadow: 0 0 6px rgba(52,199,89,0.6);
    animation: aidBlink 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes aidBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.aid-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.06;
    color: #1d1d1f;
    margin: 0 0 18px;
}
.aid-title-gradient {
    background: linear-gradient(90deg, #34C759, #0071e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.aid-subtitle {
    font-size: 1.08rem;
    color: #86868b;
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto;
}
.aid-br-desktop { display: inline; }

/* Feature pills */
.aid-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}
.aid-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8e8ed;
    font-size: 0.82rem;
    font-weight: 500;
    color: #1d1d1f;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.aid-feature i {
    color: #0071e3;
    font-size: 0.82rem;
}

/* ── Grid ── */
.aid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

/* ── Upload Card ── */
.aid-upload-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e8e8ed;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

/* Drop zone */
.aid-dropzone {
    flex: 1;
    padding: 60px 36px;
    text-align: center;
    border: 2px dashed #d2d2d7;
    border-radius: 20px;
    margin: 16px;
    transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}
.aid-dropzone-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,113,227,0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s;
}
.aid-dropzone.drag-over {
    border-color: #0071e3;
    background: rgba(0,113,227,0.02);
    transform: scale(1.01);
}
.aid-dropzone.drag-over .aid-dropzone-glow {
    background: radial-gradient(circle, rgba(0,113,227,0.12) 0%, transparent 70%);
}
.aid-upload-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0,113,227,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.aid-dropzone:hover .aid-upload-circle {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,113,227,0.12);
}
.aid-upload-circle i {
    font-size: 1.6rem;
    color: #0071e3;
}
.aid-dropzone-icon {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.aid-dropzone-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}
.aid-dropzone-sub {
    font-size: 0.9rem;
    color: #86868b;
    margin: 0 0 14px;
    position: relative;
    z-index: 1;
}
.aid-browse-btn {
    background: none;
    border: none;
    color: #0071e3;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.aid-browse-btn:hover {
    color: #005bb5;
    text-decoration: underline;
}
.aid-dropzone-hint {
    font-size: 0.76rem;
    color: #aeaeb2;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Preview */
.aid-preview {
    position: relative;
    margin: 16px;
    border-radius: 18px;
    overflow: hidden;
    background: #0a0a0a;
    aspect-ratio: 4/3;
    flex: 1;
    min-height: 260px;
}
.aid-preview img,
.aid-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.aid-preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.aid-preview-close:hover {
    background: #FF3B30;
    border-color: transparent;
}
.aid-preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 980px;
    background: rgba(52,199,89,0.9);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.aid-preview-badge i {
    font-size: 0.7rem;
}

/* Quick action buttons */
.aid-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #e8e8ed;
}
.aid-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 8px;
    background: transparent;
    border: none;
    border-right: 1px solid #e8e8ed;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.aid-quick-btn:last-child {
    border-right: none;
}
.aid-quick-btn:hover {
    background: #f5f5f7;
}
.aid-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f4ff, #e3ecfd);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.aid-quick-btn:hover .aid-quick-icon {
    transform: scale(1.08);
}
.aid-quick-icon i {
    font-size: 1rem;
    color: #0071e3;
}
.aid-quick-icon--blue {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.aid-quick-icon--blue i {
    color: #34C759;
}
.aid-quick-icon--red {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}
.aid-quick-icon--red i {
    color: #FF3B30;
}
.aid-quick-btn span {
    font-size: 0.74rem;
    font-weight: 500;
    color: #6e6e73;
    letter-spacing: 0.01em;
}

/* ── Result Card (Dark) ── */
.aid-result-card {
    background: #000;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
}
.aid-result-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,199,89,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Waiting state */
.aid-waiting {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 36px 40px;
    text-align: center;
}
.aid-waiting-orb {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}
.aid-orb-ring {
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1px solid rgba(52,199,89,0.12);
    animation: aidOrbPulse 3s ease-in-out infinite;
}
.aid-orb-ring-2 {
    width: 64px;
    height: 64px;
    border-color: rgba(0,113,227,0.1);
    animation-delay: 0.5s;
}
@keyframes aidOrbPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.2; }
}
.aid-dot-lg {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #34C759;
    box-shadow: 0 0 24px rgba(52,199,89,0.4), 0 0 80px rgba(52,199,89,0.1);
    animation: aidBlink 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
.aid-waiting h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f5f5f7;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.aid-waiting > p {
    font-size: 0.88rem;
    color: #6e6e73;
    line-height: 1.55;
    max-width: 320px;
    margin: 0 0 32px;
}

/* Detectable issues grid */
.aid-what-we-detect {
    width: 100%;
    max-width: 360px;
}
.aid-detect-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #48484a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}
.aid-detect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.aid-detect-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}
.aid-detect-item:hover {
    background: rgba(255,255,255,0.07);
}
.aid-detect-item i {
    font-size: 0.72rem;
    color: #48484a;
    width: 16px;
    text-align: center;
}
.aid-detect-item span {
    font-size: 0.74rem;
    font-weight: 500;
    color: #8e8e93;
}

/* Analyzing state */
.aid-analyzing {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 36px;
    text-align: center;
}
.aid-scan-anim {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aid-scan-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: #34C759;
    animation: aidSpin 1.4s linear infinite;
}
.aid-ring-2 {
    width: 76px;
    height: 76px;
    border-top-color: #0071e3;
    animation-duration: 1s;
    animation-direction: reverse;
}
.aid-ring-3 {
    width: 52px;
    height: 52px;
    border-top-color: rgba(255,149,0,0.6);
    animation-duration: 0.7s;
}
@keyframes aidSpin {
    to { transform: rotate(360deg); }
}
.aid-dot-scanning {
    animation: aidBlink 0.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(52,199,89,0.5), 0 0 80px rgba(52,199,89,0.15);
}
.aid-analyzing h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f5f5f7;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}
.aid-progress-bar {
    width: 220px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 18px;
}
.aid-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #34C759, #0071e3);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.aid-scan-status {
    font-size: 0.78rem;
    color: #48484a;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Diagnosis result */
.aid-diagnosis {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: aidFadeUp 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
@keyframes aidFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.aid-diagnosis-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.aid-dot-result {
    width: 8px;
    height: 8px;
    animation: aidBlink 1.5s ease-in-out infinite;
}
.aid-diagnosis-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #34C759;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.aid-diagnosis-body {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
}
.aid-diagnosis-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f5f5f7;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.aid-diagnosis-body .aid-severity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8e8e93;
}
.aid-severity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.aid-severity-dot.low { background: #34C759; box-shadow: 0 0 8px rgba(52,199,89,0.5); }
.aid-severity-dot.medium { background: #FF9500; box-shadow: 0 0 8px rgba(255,149,0,0.5); }
.aid-severity-dot.high { background: #FF3B30; box-shadow: 0 0 8px rgba(255,59,48,0.5); }
.aid-diagnosis-body .aid-comp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    margin: 0 6px 8px 0;
    letter-spacing: 0.01em;
}
.aid-comp-tag.orange { background: rgba(255,149,0,0.12); color: #FF9500; border: 1px solid rgba(255,149,0,0.15); }
.aid-comp-tag.red { background: rgba(255,59,48,0.12); color: #FF453A; border: 1px solid rgba(255,59,48,0.15); }
.aid-comp-tag.blue { background: rgba(0,113,227,0.12); color: #64d2ff; border: 1px solid rgba(0,113,227,0.15); }
.aid-comp-tag.green { background: rgba(52,199,89,0.12); color: #30d158; border: 1px solid rgba(52,199,89,0.15); }
.aid-diagnosis-body p {
    font-size: 0.88rem;
    color: #8e8e93;
    line-height: 1.65;
    margin: 0 0 14px;
}
.aid-diagnosis-body strong {
    color: #f5f5f7;
}
.aid-diagnosis-body ul {
    margin: 0 0 14px;
    padding-left: 16px;
}
.aid-diagnosis-body li {
    font-size: 0.85rem;
    color: #8e8e93;
    line-height: 1.65;
    margin-bottom: 6px;
}
.aid-diagnosis-body li::marker {
    color: #48484a;
}
.aid-disclaimer {
    font-size: 0.74rem !important;
    color: #48484a !important;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 14px;
    margin-top: 8px;
}

/* Diagnosis actions */
.aid-diagnosis-actions {
    display: flex;
    gap: 8px;
    padding: 18px 28px;
    border-top: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}
.aid-cta-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 14px;
    background: #0071e3;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.aid-cta-primary:hover {
    background: #0077ed;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,113,227,0.3);
}
.aid-cta-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 14px;
    background: rgba(37,211,102,0.1);
    color: #25D366;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(37,211,102,0.12);
    transition: all 0.2s;
}
.aid-cta-wa:hover {
    background: rgba(37,211,102,0.18);
}
.aid-cta-retry {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    color: #8e8e93;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.aid-cta-retry:hover {
    background: rgba(255,255,255,0.1);
    color: #f5f5f7;
}

/* ── Mobile ── */
@media (max-width: 860px) {
    .sp-ai-detector { padding: 10px 0 60px; }
    .aid-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .aid-title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }
    .aid-subtitle {
        font-size: 0.92rem;
    }
    .aid-br-desktop { display: none; }
    .aid-features { gap: 8px; margin-bottom: 32px; }
    .aid-feature { padding: 8px 14px; font-size: 0.76rem; }
    .aid-dropzone {
        padding: 44px 20px;
        margin: 14px;
        min-height: 220px;
    }
    .aid-upload-circle { width: 60px; height: 60px; }
    .aid-upload-circle i { font-size: 1.3rem; }
    .aid-preview { margin: 14px; min-height: 220px; }
    .aid-waiting { padding: 36px 24px 28px; }
    .aid-waiting-orb { width: 72px; height: 72px; margin-bottom: 22px; }
    .aid-orb-ring { width: 72px; height: 72px; }
    .aid-orb-ring-2 { width: 52px; height: 52px; }
    .aid-dot-lg { width: 16px; height: 16px; }
    .aid-waiting h3 { font-size: 1.2rem; }
    .aid-detect-grid { gap: 4px; }
    .aid-detect-item { padding: 8px 10px; }
    .aid-analyzing { padding: 36px 24px; }
    .aid-scan-anim { width: 80px; height: 80px; }
    .aid-scan-ring { width: 80px; height: 80px; }
    .aid-ring-2 { width: 60px; height: 60px; }
    .aid-ring-3 { width: 40px; height: 40px; }
    .aid-diagnosis-body { padding: 20px 22px; }
    .aid-diagnosis-actions {
        flex-wrap: wrap;
        padding: 14px 22px;
    }
    .aid-cta-primary { flex: 1; min-width: 0; }
    .aid-quick-actions { border-radius: 0 0 24px 24px; overflow: hidden; }
    .aid-quick-icon { width: 36px; height: 36px; border-radius: 10px; }
    .aid-quick-icon i { font-size: 0.9rem; }
    .aid-quick-btn { padding: 16px 8px; gap: 6px; }
    .aid-quick-btn span { font-size: 0.7rem; }
}
@media (max-width: 480px) {
    .aid-features { flex-direction: column; align-items: center; }
    .aid-feature { width: 100%; justify-content: center; }
    .aid-detect-grid { grid-template-columns: 1fr; }
    .aid-diagnosis-actions { flex-direction: column; }
    .aid-cta-primary, .aid-cta-wa { width: 100%; }
    .aid-cta-retry { width: 100%; }
}
