/* ============================
   RESET & BASE
   ============================ */
[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] button,
[dir="rtl"] label,
[dir="rtl"] span,
[dir="rtl"] p,
[dir="rtl"] h1,
[dir="rtl"] a,
[dir="rtl"] div {
    font-family: 'Tajawal', Arial, sans-serif;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent:       #6c3fff;
    --accent-2:     #00c6ff;
    --accent-glow:  rgba(108, 63, 255, 0.45);
    --glass-bg:     rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.10);
    --text:         #ffffff;
    --text-muted:   rgba(255, 255, 255, 0.45);
    --surface:      rgba(255, 255, 255, 0.07);
    --radius-lg:    22px;
    --radius-md:    14px;
    --radius-sm:    10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #080818;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: var(--text);
}

/* ============================
   PARTICLES
   ============================ */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

/* ============================
   BACKGROUND ANIMATED ORBS
   ============================ */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.orb-1 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #6c3fff, transparent 70%);
    top: -220px;
    left: -220px;
    animation: orbFloat 10s ease-in-out infinite;
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #00c6ff, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: orbFloat 13s ease-in-out infinite reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff3cac, transparent 70%);
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    animation: orbFloat 8s ease-in-out infinite 3s;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00e5ff, transparent 70%);
    top: 20%;
    right: -80px;
    animation: orbFloat 11s ease-in-out infinite 1.5s;
}

.orb-5 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    bottom: 20%;
    left: -60px;
    animation: orbFloat 9s ease-in-out infinite 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -40px) scale(1.06); }
    66%       { transform: translate(-25px, 25px) scale(0.94); }
}

/* ============================
   PAGE WRAPPER
   ============================ */
.page-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ============================
   CARD
   ============================ */
.card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    animation: cardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ============================
   CARD HEADER
   ============================ */
.card-header {
    text-align: center;
    margin-bottom: 34px;
}

.icon-wrapper {
    width: 76px;
    height: 76px;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow:
        0 10px 35px var(--accent-glow),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: iconPulse 3.5s ease-in-out infinite;
}

.icon-wrapper svg {
    width: 38px;
    height: 38px;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 10px 35px var(--accent-glow), 0 0 0 1px rgba(255,255,255,0.1) inset; }
    50%       { box-shadow: 0 10px 50px rgba(108, 63, 255, 0.75), 0 0 0 1px rgba(255,255,255,0.15) inset; }
}

.card-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* ============================
   FORM GROUP
   ============================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.input-row {
    display: flex;
    gap: 12px;
}

.input-row .input-wrapper.small {
    flex: 0 0 120px;
}

.input-row .input-wrapper {
    flex: 1;
}

/* ============================
   FLOATING LABEL INPUTS
   ============================ */
.input-wrapper {
    position: relative;
}

.input-wrapper label {
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
}

.input-wrapper input:focus ~ label,
.input-wrapper input:not(:placeholder-shown) ~ label {
    top: 11px;
    font-size: 0.67rem;
    color: var(--accent-2);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.input-wrapper input {
    width: 100%;
    padding: 22px 16px 8px 46px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    outline: none;
    transition: all 0.3s ease;
    caret-color: var(--accent-2);
}

.input-wrapper input::placeholder { color: transparent; }

.input-wrapper input:focus {
    border-color: rgba(108, 63, 255, 0.55);
    background: rgba(108, 63, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(108, 63, 255, 0.12);
}

/* autocomplete dropdown fix */
.input-wrapper input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0f0f28 inset;
    -webkit-text-fill-color: #fff;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: color 0.3s;
    z-index: 1;
}

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

.input-wrapper:focus-within .input-icon {
    color: var(--accent-2);
}

/* ============================
   BUTTONS
   ============================ */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    box-shadow: 0 8px 28px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(108, 63, 255, 0.6);
}

.btn-primary:hover::after { opacity: 1; }

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: var(--text-muted);
    background: var(--surface);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-secondary svg {
    width: 14px;
    height: 14px;
}

/* ============================
   PLACE INFO CARD
   ============================ */
#place-info-card {
    margin-top: 18px;
    animation: fadeSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#place-info-card.hidden { display: none; }

.place-info-inner {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* Header */
.place-info-header {
    display: flex;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: flex-start;
}

.pi-photo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}

.pi-photo-wrap.hidden { display: none; }

.pi-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pi-title-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pi-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.pi-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

.pi-stars {
    color: #fbbc04;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.pi-category {
    font-size: 0.72rem;
    color: var(--accent-2);
    font-weight: 500;
}

/* Status badge */
.pi-status-open {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(0,200,100,0.15);
    border: 1px solid rgba(0,200,100,0.3);
    border-radius: 20px;
    color: #00e87a;
    font-size: 0.68rem;
    font-weight: 600;
    margin-left: 4px;
}

.pi-status-closed {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255,80,80,0.12);
    border: 1px solid rgba(255,80,80,0.3);
    border-radius: 20px;
    color: #ff6b6b;
    font-size: 0.68rem;
    font-weight: 600;
    margin-left: 4px;
}

/* Details rows */
.pi-details {
    padding: 6px 0;
}

.pi-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}

.pi-row:last-child { border-bottom: none; }
.pi-row:hover { background: rgba(255,255,255,0.03); }
.pi-row.hidden { display: none; }

.pi-row-icon {
    width: 20px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    color: var(--text-muted);
    margin-top: 1px;
}

.pi-row span,
.pi-row a,
.pi-row div {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.pi-link {
    color: var(--accent-2) !important;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.pi-link:hover { color: #fff !important; text-decoration: underline; }

/* Hours list */
.pi-hours-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.pi-hour-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    gap: 12px;
}

.pi-hour-row.today {
    color: #fff;
    font-weight: 600;
}

.pi-hour-day { flex-shrink: 0; min-width: 90px; }
.pi-hour-time { color: rgba(255,255,255,0.5); text-align: right; }
.pi-hour-row.today .pi-hour-time { color: #7df9ff; }

/* ============================
   RESULT CONTAINER
   ============================ */
#result-container {
    margin-top: 18px;
    animation: fadeSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#result-container.hidden { display: none; }

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

/* Success card */
.result-card {
    background: linear-gradient(135deg,
        rgba(108, 63, 255, 0.12),
        rgba(0, 198, 255, 0.08));
    border: 1px solid rgba(108, 63, 255, 0.30);
    border-radius: var(--radius-md);
    padding: 20px;
}

.result-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 12px;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

#place-id-result {
    flex: 1;
    color: #7df9ff;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

#copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(108, 63, 255, 0.35);
    flex-shrink: 0;
}

#copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 63, 255, 0.5);
}

#copy-btn.copied {
    background: linear-gradient(135deg, #00b894, #00cec9);
    box-shadow: 0 4px 14px rgba(0, 184, 148, 0.4);
}

/* Error card */
.error-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    color: #ff8080;
    font-size: 0.85rem;
    font-weight: 500;
}

.error-card.hidden { display: none; }

/* ============================
   FOOTER
   ============================ */
.footer-text {
    font-size: 0.72rem;
    color: #ffffff;
    text-align: center;
    font-weight: 300;
}

/* ============================
   LINKS SECTION
   ============================ */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both 0.1s;
}

.links-section.hidden { display: none; }

.links-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0 4px;
    margin-bottom: 2px;
}

.links-header svg { flex-shrink: 0; }

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.link-card:active { transform: translateX(2px) scale(0.99); }

.link-card.copied {
    border-color: rgba(0, 184, 148, 0.5);
    background: rgba(0, 184, 148, 0.08);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.link-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-desc {
    color: var(--text-muted);
    font-size: 0.71rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.link-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.qr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.qr-btn:hover {
    background: rgba(108, 63, 255, 0.2);
    border-color: rgba(108, 63, 255, 0.5);
    color: #fff;
    transform: scale(1.05);
}

.qr-btn.generating {
    opacity: 0.6;
    pointer-events: none;
}

[dir="rtl"] .link-actions { align-items: flex-start; }

.link-card:hover .link-copy-btn {
    background: rgba(108, 63, 255, 0.2);
    border-color: rgba(108, 63, 255, 0.4);
    color: #fff;
}

.link-card.copied .link-copy-btn {
    background: rgba(0, 184, 148, 0.2);
    border-color: rgba(0, 184, 148, 0.4);
    color: #00e5c8;
}

.links-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
    padding: 4px 0 2px;
}

.links-note code {
    color: #7df9ff;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    background: rgba(125, 249, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

@media (max-width: 420px) {
    .link-title { font-size: 0.78rem; }
    .link-desc  { display: none; }
    .link-copy-btn { padding: 5px 8px; font-size: 0; }
    .link-copy-btn svg { display: block; }
}

/* ============================
   GOOGLE AUTOCOMPLETE DROPDOWN
   ============================ */
.pac-container {
    background: #111128 !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    margin-top: 6px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif !important;
}

.pac-item {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 10px 14px !important;
    font-size: 0.82rem !important;
    cursor: pointer;
    transition: background 0.2s;
}

.pac-item:hover,
.pac-item-selected {
    background: rgba(108, 63, 255, 0.18) !important;
    color: #fff !important;
}

.pac-icon { filter: invert(1) brightness(0.6); }

.pac-item-query {
    color: #fff !important;
    font-size: 0.85rem !important;
}

.pac-matched { color: var(--accent-2) !important; }

/* ============================
   LANGUAGE SWITCHER
   ============================ */
.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 20px;
}

[dir="rtl"] .lang-switcher { justify-content: flex-start; }

.lang-btn {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.lang-btn:hover {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* ============================
   RTL SUPPORT
   ============================ */

/* Input icon — flip side */
[dir="rtl"] .input-icon {
    left: auto;
    right: 14px;
}

/* Input padding — icon now on right */
[dir="rtl"] .input-wrapper input {
    padding: 22px 46px 8px 16px;
    text-align: right;
}

/* Floating label — flip side */
[dir="rtl"] .input-wrapper label {
    left: auto;
    right: 46px;
}

[dir="rtl"] .input-wrapper input:focus ~ label,
[dir="rtl"] .input-wrapper input:not(:placeholder-shown) ~ label {
    right: 46px;
    left: auto;
}

/* Buttons — reverse icon order */
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-secondary { flex-direction: row-reverse; }

/* Link cards — reverse hover direction */
[dir="rtl"] .link-card:hover { transform: translateX(-4px); }

/* Result code — align right */
[dir="rtl"] #place-id-result { text-align: right; }

/* Place info rows */
[dir="rtl"] .pi-row { flex-direction: row-reverse; }
[dir="rtl"] .pi-title-block { text-align: right; }
[dir="rtl"] .pi-rating { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .pi-hour-day { text-align: right; }
[dir="rtl"] .pi-hour-time { text-align: left; }

/* Links section */
[dir="rtl"] .links-header { flex-direction: row-reverse; }
[dir="rtl"] .link-card { flex-direction: row-reverse; }
[dir="rtl"] .link-info { text-align: right; }

/* Card-in animation stays centered */
[dir="rtl"] .card-header h1 { text-align: center; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 520px) {
    .card {
        padding: 30px 22px;
    }

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

    .input-row {
        flex-direction: column;
    }

    .input-row .input-wrapper.small {
        flex: unset;
    }
}

@media (max-width: 360px) {
    .card { padding: 24px 16px; }
    .card-header h1 { font-size: 1.2rem; }
}
