@font-face {
    font-family: 'IRANSans';
    src: url('IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary: #00c6ff;
    --primary-dark: #0072ff;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --bg-deep: #0a0e27;
    --bg-card: rgba(15, 20, 50, 0.88);
    --bg-card-border: rgba(100, 140, 255, 0.12);
    --text: #e8ecf4;
    --text-muted: #8892b0;
    --success: #22d3ee;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: rgba(0, 198, 255, 0.4);
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'IRANSans', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    direction: rtl;
    overflow-x: hidden;
}

/* ── Background Animation ── */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-dark);
    top: -15%;
    right: -10%;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -10%;
    left: -5%;
    animation-delay: -7s;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* ── Header ── */
.header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    flex-shrink: 0;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 198, 255, 0.2);
}

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

.logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 198, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.15);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-wrap:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.3);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-brand {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* ── Main ── */
.main {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Content Wrap ── */
.content-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    gap: 20px;
}

/* ── Card ── */
.card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    padding: 28px 30px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    flex-shrink: 0;
}

@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Card Header ── */
.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 114, 255, 0.3);
}

.icon-circle svg {
    width: 26px;
    height: 26px;
}

.card-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ── Mode Switch ── */
.mode-switch-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mode-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
    user-select: none;
    white-space: nowrap;
}

.mode-label-active {
    color: var(--primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-switch:hover {
    background: rgba(255, 255, 255, 0.16);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 198, 255, 0.4);
}

.toggle-switch.active .toggle-knob {
    right: auto;
    left: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

/* ── Inputs ── */
.inputs-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.input-field {
    width: 100%;
    padding: 12px 18px 12px 52px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    -moz-appearance: textfield;
    direction: rtl;
    text-align: right;
}

.input-field::-webkit-outer-spin-button,
.input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-field:focus {
    border-color: var(--primary);
    background: rgba(0, 198, 255, 0.04);
    box-shadow: 0 0 0 3px var(--input-focus);
}

.input-unit {
    position: absolute;
    left: 14px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 198, 255, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    pointer-events: none;
}

/* ── Button ── */
.calc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.calc-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 114, 255, 0.35);
}

.calc-btn:hover::before {
    opacity: 1;
}

.calc-btn:active {
    transform: translateY(0);
}

.calc-btn span,
.calc-btn svg {
    position: relative;
    z-index: 1;
}

/* ── Result ── */
.result-section {
    margin-top: 16px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.result-section.show {
    max-height: 200px;
    opacity: 1;
    margin-top: 16px;
}

.result-box {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(0, 198, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
}

.result-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.result-value-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    direction: ltr;
}

.result-value {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--success), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    direction: ltr;
}

.result-unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 198, 255, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
}

.result-formula {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    direction: ltr;
    unicode-bidi: embed;
    font-family: 'Courier New', monospace;
}

/* ── Info Section ── */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.info-card-full {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    transition: var(--transition);
}

.info-card-full:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 198, 255, 0.15);
}

.info-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.info-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.info-card-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-card-value {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 600;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── FAQ ── */
.faq-section {
    width: 100%;
    max-width: 480px;
   /* margin-top: 20px; fln bedardam nmikhore :/ */ 
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.faq-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 14px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.faq-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 0 var(--radius) var(--radius) 0;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.15), transparent);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(0, 198, 255, 0.15);
}

.faq-item.open {
    border-color: rgba(0, 198, 255, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: right;
    direction: rtl;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 16px 14px;
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-muted);
    direction: rtl;
}

.faq-answer p code {
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--primary);
    background: rgba(0, 198, 255, 0.08);
    border: 1px solid rgba(0, 198, 255, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    margin: 2px 0;
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-light);
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ══════════════════════════════════════ */

/* ── Small phones < 360px ── */
@media (max-width: 360px) {
    .header {
        padding: 10px 12px;
    }

    .home-btn {
        padding: 6px 10px;
        font-size: 0;
        gap: 0;
    }

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

    .home-btn span {
        display: none;
    }

    .header-brand {
        font-size: 0.85rem;
    }

    .logo-wrap {
        width: 38px;
        height: 38px;
    }

    .main {
        padding: 0 10px;
    }

    .card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .card-header {
        margin-bottom: 14px;
    }

    .icon-circle {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }

    .icon-circle svg {
        width: 22px;
        height: 22px;
    }

    .card-header h1 {
        font-size: 1.05rem;
    }

    .subtitle {
        font-size: 0.78rem;
    }

    .mode-switch-wrap {
        padding: 8px 12px;
        gap: 8px;
        margin-bottom: 14px;
    }

    .mode-label {
        font-size: 0.68rem;
    }

    .toggle-switch {
        width: 42px;
        height: 24px;
    }

    .toggle-knob {
        width: 18px;
        height: 18px;
    }

    .inputs-section {
        gap: 10px;
        margin-bottom: 14px;
    }

    .input-field {
        padding: 10px 12px 10px 46px;
        font-size: 0.9rem;
    }

    .input-unit {
        left: 10px;
        padding: 3px 7px;
        font-size: 0.72rem;
    }

    .calc-btn {
        padding: 11px;
        font-size: 0.88rem;
    }

    .result-box {
        padding: 14px;
    }

    .result-value {
        font-size: 1.8rem;
    }

    .result-unit {
        font-size: 0.9rem;
        padding: 3px 10px;
    }

    .result-formula {
        font-size: 0.68rem;
    }

    .info-card-full {
        padding: 10px 14px;
        gap: 10px;
    }

    .info-card-icon {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .info-card-title {
        font-size: 0.7rem;
    }

    .info-card-value {
        font-size: 0.72rem;
    }

    .faq-section {
        margin-top: 14px;
        padding: 14px;
        border-radius: 14px;
    }

    .faq-title {
        font-size: 0.9rem;
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .faq-question {
        padding: 12px 14px;
        font-size: 0.8rem;
    }

    .faq-arrow {
        width: 16px;
        height: 16px;
    }

    .faq-answer p {
        font-size: 0.73rem;
        padding: 0 14px 12px;
    }

    .footer {
        padding: 8px;
        font-size: 0.7rem;
    }
}

/* ── Medium phones 361px – 480px ── */
@media (min-width: 361px) and (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }

    .home-btn {
        padding: 7px 12px;
        font-size: 0;
        gap: 0;
    }

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

    .home-btn span {
        display: none;
    }

    .header-brand {
        font-size: 0.95rem;
    }

    .logo-wrap {
        width: 42px;
        height: 42px;
    }

    .main {
        padding: 0 12px;
    }

    .card {
        padding: 22px 20px;
    }

    .card-header {
        margin-bottom: 16px;
    }

    .icon-circle {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

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

    .card-header h1 {
        font-size: 1.15rem;
    }

    .mode-switch-wrap {
        padding: 9px 14px;
        gap: 10px;
        margin-bottom: 16px;
    }

    .mode-label {
        font-size: 0.73rem;
    }

    .toggle-switch {
        width: 46px;
        height: 26px;
    }

    .toggle-knob {
        width: 20px;
        height: 20px;
    }

    .inputs-section {
        gap: 12px;
        margin-bottom: 16px;
    }

    .input-field {
        padding: 11px 14px 11px 48px;
        font-size: 0.95rem;
    }

    .input-unit {
        left: 12px;
        padding: 3px 8px;
        font-size: 0.78rem;
    }

    .calc-btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    .result-value {
        font-size: 2.1rem;
    }

    .info-card-full {
        padding: 12px 14px;
    }

    .info-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .faq-question {
        padding: 13px 14px;
        font-size: 0.83rem;
    }

    .faq-answer p {
        font-size: 0.76rem;
    }
}

/* ── Tablets 481px – 768px ── */
@media (min-width: 481px) and (max-width: 768px) {
    .header {
        padding: 14px 24px;
    }

    .header-brand {
        font-size: 1.05rem;
    }

    .logo-wrap {
        width: 46px;
        height: 46px;
    }

    .card {
        padding: 28px 28px;
    }

    .card-header {
        margin-bottom: 20px;
    }

    .icon-circle {
        width: 54px;
        height: 54px;
    }

    .card-header h1 {
        font-size: 1.3rem;
    }

    .mode-switch-wrap {
        padding: 10px 18px;
    }

    .mode-label {
        font-size: 0.82rem;
    }

    .input-field {
        padding: 12px 16px 12px 50px;
    }

    .result-value {
        font-size: 2.4rem;
    }
}

/* ── Desktop 769px+ ── */
@media (min-width: 769px) {
    .header {
        padding: 16px 32px;
    }

    .home-btn {
        padding: 10px 22px;
        font-size: 0.88rem;
        gap: 8px;
    }

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

    .home-btn span {
        display: inline;
    }

    .header-brand {
        font-size: 1.15rem;
    }

    .logo-wrap {
        width: 52px;
        height: 52px;
    }

    .content-wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: 28px;
        padding-top: 10px;
    }

    .card {
        padding: 32px 36px;
        flex: 0 0 auto;
        width: 420px;
    }

    .card-header {
        margin-bottom: 24px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
    }

    .icon-circle svg {
        width: 28px;
        height: 28px;
    }

    .card-header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .mode-switch-wrap {
        padding: 12px 24px;
        gap: 14px;
    }

    .mode-label {
        font-size: 0.88rem;
    }

    .toggle-switch {
        width: 56px;
        height: 30px;
    }

    .toggle-knob {
        width: 24px;
        height: 24px;
    }

    .input-field {
        padding: 14px 20px 14px 56px;
        font-size: 1.1rem;
    }

    .calc-btn {
        padding: 14px;
        font-size: 1.05rem;
    }

    .result-value {
        font-size: 2.8rem;
    }

    .info-card-full {
        padding: 16px 20px;
    }

    .faq-section {
        flex: 1;
        min-width: 0;
        margin-top: 0;
        padding: 24px;
    }

    .faq-title {
        font-size: 1.1rem;
        padding: 16px 24px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.92rem;
    }

    .faq-answer p {
        padding: 0 18px 16px;
        font-size: 0.85rem;
    }
}

/* ── Scrollbar ── */
.main::-webkit-scrollbar {
    width: 4px;
}

.main::-webkit-scrollbar-track {
    background: transparent;
}

.main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Animations ── */
@keyframes resultPop {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.result-box.animate {
    animation: resultPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.input-field.shake {
    animation: shake 0.4s ease;
    border-color: #ef4444 !important;
}
