/*!
 * Aramin theme for QRcdr — qr.aramin.co
 * Tokens copied from the live aramin.co (surface-midnight, brand #2457e8, Vazirmatn, radius .5rem).
 */
@font-face{
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
:root{
    --bg: #091423;            /* surface-midnight */
    --fg: #f5f6f2;
    --muted: #b3c0d1;
    --muted-2: #7f8ea3;
    --border: #1f324c;
    --input: #2b405a;
    --input-bg: rgba(43,64,90,.3);
    --nav-active: #172a47;
    --brand: #2457e8;
    --brand-hover: #3a69f0;
    --brand-soft: #afc9ff;    /* highlighted headline line */
    --card: rgba(255,255,255,.03);
    --radius: .5rem;
}
html, body{
    background: var(--bg);
    color: var(--fg);
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body{ text-align: right; line-height: 1.75; }
a{ color: var(--brand-soft); }
a:hover, a:focus{ color: #fff; }
h1, h2, h3, h4, h5{ color: var(--fg); font-weight: 500; letter-spacing: -.01em; }
h4{ font-size: 1.1rem; margin-bottom: 1rem; }
label{ color: var(--muted); font-size: .875rem; font-weight: 500; }
.text-muted, .form-text.text-muted{ color: var(--muted-2) !important; }
hr{ border-color: var(--border); }
[dir="ltr"]{ text-align: left; }

/* Header (same as aramin.co) */
.ar-nav{
    position: sticky; top: 0; z-index: 1030;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: 64px; display: flex; align-items: center;
}
.ar-nav > .container{ width: 100%; }
.ar-logo{ display: inline-flex; align-items: center; color: var(--fg); }
.ar-logo svg{ height: 24px; width: auto; fill: currentColor; }
.ar-logo:hover{ color: var(--fg); }
.ar-nav-links{ display: flex; align-items: center; gap: .25rem; }
.ar-nav-links a{
    color: var(--muted); font-size: .875rem; font-weight: 500;
    padding: 6px 14px; border-radius: 6.4px;
}
.ar-nav-links a:hover, .ar-nav-links a.active{ background: var(--nav-active); color: var(--fg); }
.ar-nav-links a.ar-btn{ background: var(--brand) !important; color: #fff !important; margin-right: .5rem; }

/* Buttons */
.ar-btn, .btn-primary, .btn-primary:not(:disabled):not(.disabled):active{
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--brand) !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    font-weight: 500;
    border-radius: var(--radius) !important;
    height: 48px; padding: 0 24px;
    box-shadow: none !important;
    transition: background-color .2s ease;
}
.ar-btn:hover, .btn-primary:hover, .btn-primary:focus{ background: var(--brand-hover) !important; color: #fff !important; }
.ar-btn-sm{ height: 32px !important; padding: 0 12px !important; font-size: .825rem; border-radius: 6.4px !important; }
.ar-btn-outline, .btn-outline-primary, .btn-default{
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    background: var(--input-bg) !important;
    border: 1px solid var(--input) !important;
    color: var(--fg) !important;
    border-radius: var(--radius) !important;
    font-weight: 500;
}
.ar-btn-outline{ height: 48px; padding: 0 24px; }
.ar-btn-outline:hover, .btn-outline-primary:hover, .btn-default:hover{ background: rgba(43,64,90,.55) !important; color: #fff !important; }
.btn{ border-radius: var(--radius); }

/* Hero: midnight surface, faint grid, blue glow */
.ar-hero{
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(700px 420px at 15% 35%, rgba(36,87,232,.25), transparent 70%),
        radial-gradient(900px 600px at 0% 0%, rgba(22,54,142,.35), transparent 70%),
        var(--bg);
}
.ar-hero::before{
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.ar-eyebrow-row{ display: flex; justify-content: space-between; gap: 1rem; padding-top: 40px; }
.ar-eyebrow{ color: var(--muted-2); font-size: .8rem; font-weight: 500; }
.ar-eyebrow .dot, .ar-kicker .dot{ display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-soft); margin-left: .5rem; vertical-align: middle; opacity: .8; }
.ar-title{
    font-size: 2.3rem; line-height: 1.3; font-weight: 500; letter-spacing: -.02em;
    margin: 2.2rem 0 1.2rem;
}
.ar-title .ar-hl{ display: block; color: var(--brand-soft); }
.ar-lead{ color: rgba(245,246,242,.9); font-size: 1.15rem; line-height: 1.9; max-width: 42rem; }
.ar-lead-2{ color: var(--muted); font-size: 1rem; line-height: 1.9; max-width: 42rem; }
.ar-actions{ display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 3.5rem; }
@media (min-width: 768px){ .ar-title{ font-size: 3.4rem; } }
@media (min-width: 1200px){ .ar-title{ font-size: 4rem; } }
.ar-mark{ position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.ar-mark svg{ position: relative; width: 240px; height: auto; filter: drop-shadow(0 30px 60px rgba(36,87,232,.45)); }
.ar-mark::before{
    content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
    background: repeating-radial-gradient(circle, rgba(175,201,255,.08) 0 1px, transparent 1px 18px);
    -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%);
    mask-image: radial-gradient(circle, #000 40%, transparent 70%);
}

/* Generator */
.ar-gen{ padding-top: 48px; }
.qr-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14.4px;
    padding-left: 20px !important; padding-right: 20px !important;
}
.form-control, .custom-select, .input-group-text{
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input) !important;
    color: var(--fg) !important;
    border-radius: var(--radius);
    font-size: .9rem;
}
.form-control::placeholder{ color: #5d6e86; }
.form-control:focus, .custom-select:focus{
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(36,87,232,.3) !important;
}
.custom-select{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23b3c0d1' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left .75rem center !important;
    background-size: 8px 10px !important;
}
.custom-select option{ background: var(--bg); color: var(--fg); }
.was-validated .form-control:valid, .was-validated .custom-select:valid{ border-color: var(--input) !important; }
.was-validated .form-control:invalid, .form-control.is-invalid{ border-color: #d92d20 !important; }

/* Input groups in RTL: square inner corners */
.input-group > .input-group-prepend > .input-group-text{ border-radius: 0 var(--radius) var(--radius) 0 !important; }
.input-group > .form-control:not(:first-child){ border-radius: var(--radius) 0 0 var(--radius) !important; }
.input-group[dir="ltr"] > .input-group-prepend > .input-group-text{ border-radius: var(--radius) 0 0 var(--radius) !important; }
.input-group[dir="ltr"] > .form-control:not(:first-child){ border-radius: 0 var(--radius) var(--radius) 0 !important; }

/* Type tabs */
.nav-pills{ gap: .35rem; flex-wrap: wrap; }
.nav-pills .nav-link{
    color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius);
    background: transparent; padding: .5rem .6rem; white-space: nowrap; font-weight: 500;
}
.nav-pills .nav-link:hover{ background: var(--nav-active); color: var(--fg); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link{
    background: var(--brand) !important; color: #fff !important; border-color: var(--brand);
}
.nav-pills > li > a span{ font-size: .85rem; }
.tab-content{ padding-top: .5rem; }

/* Logo / style pickers */
.btn-light{
    background: #f5f6f2 !important; border: 2px solid transparent !important; border-radius: var(--radius) !important;
}
.btn-light.active, .btn-light:not(:disabled):not(.disabled).active{
    border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(36,87,232,.35) !important;
}
.btn-file{ border-radius: var(--radius) !important; }
.custom-control-label{ color: var(--fg); }
.custom-control-input:checked ~ .custom-control-label::before{ background-color: var(--brand); border-color: var(--brand); }

/* Result box */
.placeresult{
    float: none !important;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14.4px;
    box-shadow: none !important;
    padding: 20px !important;
    position: sticky !important;
    top: 84px;
}
.resultholder{ background: #fff; border-radius: 11.2px; padding: 12px; }
.resultholder img{ display: block; margin: 0 auto; }
.preloader{ background: rgba(9,20,35,.88) !important; border-radius: 14.4px; box-shadow: none !important; color: var(--brand-soft); }
.linksholder{ display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.linksholder .btn{ flex: 1 1 auto; height: 40px; }
#submitcreate{ width: 100%; font-size: 1rem; }

/* Alerts */
.alert-warning{ background: rgba(217,45,32,.1); border: 1px solid rgba(217,45,32,.4); color: #ffc9c4; border-radius: var(--radius); }
.alert .close{ color: #fff; }

/* Content sections */
.ar-section{ padding: 96px 0 40px; }
.ar-kicker{ color: var(--muted-2); font-size: .8rem; font-weight: 500; margin-bottom: .6rem; }
.ar-h2{ font-size: 1.9rem; line-height: 1.35; letter-spacing: -.02em; }
.ar-h2 .ar-hl{ color: var(--brand-soft); }
.ar-cardx{
    background: var(--card);
    border: 1px solid var(--border); border-radius: 11.2px;
    padding: 24px; height: 100%;
    transition: border-color .3s ease, background-color .3s ease;
}
.ar-cardx:hover{ border-color: var(--input); background: rgba(255,255,255,.045); }
.ar-cardx h3{ font-size: 1.05rem; font-weight: 500; margin: 1rem 0 .5rem; }
.ar-cardx p{ color: var(--muted); line-height: 1.9; margin: 0; font-size: .95rem; }
.ar-icon{
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius);
    background: rgba(36,87,232,.14); border: 1px solid rgba(72,119,255,.35);
    color: var(--brand-soft); font-size: 1.1rem;
}
.ar-divider{ height: 1px; width: 100%; background: var(--border); margin: 56px 0; }
.ar-pill{
    display: inline-flex; align-items: center; gap: .4rem;
    border: 1px solid var(--border); background: var(--card);
    padding: .35rem .75rem; border-radius: 6.4px; margin: .2rem;
    color: var(--muted); font-size: .85rem;
}
.ar-pill .fa{ color: var(--brand-soft); }
.ar-faq details{ border-bottom: 1px solid var(--border); padding: 1.1rem .2rem; }
.ar-faq details:first-child{ border-top: 1px solid var(--border); }
.ar-faq summary{ cursor: pointer; font-weight: 500; color: var(--fg); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ar-faq summary::-webkit-details-marker{ display: none; }
.ar-faq summary::after{ content: "+"; color: var(--muted-2); font-size: 1.3rem; line-height: 1; }
.ar-faq details[open] summary::after{ content: "−"; }
.ar-faq details p{ color: var(--muted); line-height: 1.9; margin: .7rem 0 0; }
.ar-muted{ color: var(--muted); }

/* Footer (aramin.co style) */
.ar-footer{
    position: relative; overflow: hidden;
    border-top: 1px solid var(--border);
    margin-top: 64px;
    background: radial-gradient(800px 400px at 85% 120%, rgba(36,87,232,.22), transparent 70%), var(--bg);
}
.ar-footer-tag{ font-size: 2.2rem; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; margin: 1rem 0 0; }
.ar-footer-tag .ar-hl{ color: var(--brand-soft); display: block; }
.ar-footer-bottom{ border-top: 1px solid var(--border); color: var(--muted-2); font-size: .8rem; }

/* Colorpicker popup and LTR fields */
.colorpicker{ direction: ltr; }
.colorpickerback, .colorpickerfront, input[type="url"], input[type="email"]{ direction: ltr; text-align: left; }
