/* Site Styles */

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

.notes-slug-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 8, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.notes-slug-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.notes-slug-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 28px;
    max-width: 420px;
    width: calc(100% - 40px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.notes-slug-card h3 {
    margin-bottom: 8px;
    font-weight: 700;
}

.notes-slug-card p {
    color: #6a6660;
    margin-bottom: 16px;
}

.notes-slug-card input {
    width: 100%;
    border: 1px solid #e2ded7;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.notes-slug-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.notes-slug-actions .btn {
    min-width: 120px;
}

html,
body {
    direction: rtl;
    min-height: 100%;
}

body.site-theme {
    font-family: 'Cairo', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    background: #0b0f14;
    color: #ffffff;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

:root {
    --brand-bg: #0b0f14;
    --brand-panel: #0f1629;
    --brand-accent: #00ffa3;
    --brand-muted: rgba(255, 255, 255, 0.7);
    --brand-border: rgba(0, 255, 163, 0.12);
    --brand-1: #00f5a0;
    --brand-2: #e5e7eb;
    --brand-3: #6b7280;
    --card-bg: #0b1220;
    --card-bg2: #0f172a;
    --scan-speed: 4s;
    --scan-glow: rgba(0, 245, 160, 0.65);
}

.bg-pattern {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 163, 0.18) 0%, transparent 32%),
        radial-gradient(circle at 75% 65%, rgba(0, 180, 120, 0.18) 0%, transparent 36%),
        radial-gradient(circle, rgba(0, 255, 163, 0.5) 1.2px, transparent 1.9px),
        radial-gradient(circle, rgba(0, 255, 163, 0.32) 0.9px, transparent 1.6px),
        radial-gradient(circle, rgba(0, 255, 163, 0.24) 0.7px, transparent 1.4px);
    background-size: auto, auto, 220px 220px, 140px 140px, 90px 90px;
    background-position: 0 0, 0 0, 0 0, 40px 30px, 20px 10px;
    animation: spaceDrift 70s linear infinite;
    z-index: 0;
    opacity: 0.78;
    pointer-events: none;
}

@keyframes spaceDrift {
    0% {
        background-position: 0 0, 0 0, 0 0, 40px 30px, 20px 10px;
    }
    50% {
        background-position: -120px 80px, 80px -60px, -60px 40px, 10px 90px, 60px -20px;
    }
    100% {
        background-position: 0 0, 0 0, 0 0, 40px 30px, 20px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-pattern {
        animation: none;
    }

    .bg-pattern::before,
    .bg-pattern::after {
        animation: none;
    }
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 20, 0.95);
    border-bottom: 1px solid var(--brand-border);
    padding: 0.75rem 0;
    z-index: 1000;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle {
    font-weight: 600;
}

.navbar {
    background: rgba(11, 15, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--brand-border);
    padding: 0.9rem 0;
}

.navbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    direction: ltr;
}

.navbar-brand {
    justify-self: start;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    justify-self: center;
    direction: rtl;
}

.nav-links a {
    color: var(--brand-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--brand-accent);
}

.nav-spacer {
    justify-self: end;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-text {
    white-space: nowrap;
}

.hero-section {
    padding: 150px 0 90px;
    text-align: center;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-cyber {
    --hero-purple: #6d28d9;
    --hero-blue: #0f172a;
    --hero-cyan: #22d3ee;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 100vh;
    padding: 160px 0 110px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.hero-dim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.75));
    opacity: 0.45;
}

.hero-gradient {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 30%, rgba(109, 40, 217, 0.35), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.18), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.2), transparent 45%),
        linear-gradient(140deg, rgba(6, 10, 22, 0.96), rgba(15, 18, 40, 0.96));
    filter: blur(0px);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-rings {
    position: absolute;
    right: 6%;
    top: 25%;
    width: 520px;
    max-width: 45vw;
    height: 520px;
    opacity: 0.14;
    transform-origin: center;
    animation: ring-rotate 40s linear infinite;
}

.hero-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 30px rgba(109, 40, 217, 0.25);
}

.hero-ring.ring-md {
    inset: 12%;
    border-color: rgba(59, 130, 246, 0.25);
    animation: ring-pulse 8s ease-in-out infinite;
}

.hero-ring.ring-sm {
    inset: 26%;
    border-color: rgba(109, 40, 217, 0.3);
    animation: ring-pulse 6s ease-in-out infinite reverse;
}

.terminal {
    position: absolute;
    top: 16%;
    right: 8%;
    left: auto;
    transform: translate3d(0, 0, 0);
    width: min(420px, 40vw);
    opacity: 0.12;
    filter: blur(0.6px);
    mix-blend-mode: screen;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.75);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12.5px;
    line-height: 1.6;
    letter-spacing: 1px;
    box-shadow: 0 0 35px rgba(0, 255, 170, 0.08);
    animation: float-soft 9s ease-in-out infinite, drift 12s ease-in-out infinite;
    pointer-events: none;
}

.terminal code {
    display: block;
    white-space: pre-wrap;
}

.terminal-cursor {
    display: inline-block;
    margin-right: 2px;
    animation: cursor-blink 1s steps(2, start) infinite;
}

@keyframes cursor-blink {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(8px, -6px, 0);
    }
}

.terminal-one {
    transform: translateY(0);
    animation-delay: 0s;
}

.terminal-two {
    transform: translateY(10px);
    animation-delay: 1.5s;
}

.terminal-three {
    transform: translateY(-6px);
    animation-delay: 3s;
}

@keyframes float-soft {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

@keyframes ring-rotate {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.05);
    }
}

@keyframes ring-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.9;
    }
}

.hero-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--brand-muted);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--brand-muted);
    margin-bottom: 2.5rem;
}

.info-card {
    background: var(--brand-panel);
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 1.75rem;
    height: 100%;
}

.cta-panel {
    background: rgba(0, 255, 163, 0.08);
    border: 1px solid rgba(0, 255, 163, 0.22);
    border-radius: 18px;
    padding: 2.5rem 1.75rem;
    text-align: center;
}

.btn-primary {
    background: var(--brand-accent);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    color: #0b0f14;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 255, 163, 0.25);
    color: #0b0f14;
}

.btn-outline-light {
    border: 1px solid rgba(0, 255, 163, 0.35);
    color: var(--brand-accent);
    border-radius: 12px;
    padding: 0.75rem 2rem;
}

.btn-outline-light:hover {
    background: rgba(0, 255, 163, 0.08);
    border-color: rgba(0, 255, 163, 0.6);
    color: var(--brand-accent);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(88px, 12vh, 120px) 16px clamp(20px, 6vh, 40px);
}

.auth-stack {
    width: 100%;
    max-width: 1080px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.auth-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.auth-card {
    width: 100%;
    background: rgba(10, 14, 24, 0.92);
    border: 1px solid var(--brand-border);
    border-radius: 26px;
    padding: 0;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
    overflow: hidden;
    position: relative;
}

.auth-card:hover {
    background: rgba(10, 14, 24, 0.92);
    border-color: var(--brand-border);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
}

.auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas: "form accent";
    min-height: clamp(520px, 72vh, 720px);
    isolation: isolate;
    transition: grid-template-columns 0.6s ease;
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: -8% -4%;
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.35), rgba(0, 255, 163, 0.06));
    clip-path: polygon(54% 0, 100% 0, 100% 100%, 36% 100%);
    z-index: 0;
    transition: clip-path 0.6s ease;
}

.auth-shell[data-mode="register"] {
    grid-template-columns: 0.95fr 1.05fr;
    grid-template-areas: "accent form";
}

.auth-shell[data-mode="register"]::before {
    clip-path: polygon(0 0, 46% 0, 64% 100%, 0 100%);
}

.auth-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: clamp(24px, 4vw, 40px);
}

.auth-panel--form {
    grid-area: form;
    background: rgba(9, 12, 20, 0.88);
}

.auth-shell[data-mode="login"] .auth-panel--form {
    border-left: 1px solid rgba(0, 255, 163, 0.15);
}

.auth-shell[data-mode="register"] .auth-panel--form {
    border-right: 1px solid rgba(0, 255, 163, 0.15);
}

.auth-panel--accent {
    grid-area: accent;
    text-align: center;
}

.auth-panel__inner {
    width: 100%;
    display: grid;
}

.auth-form,
.auth-accent {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateX(28px);
    filter: blur(10px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    pointer-events: none;
}

.auth-form--forgot {
    transform: translateY(28px);
}

.auth-shell[data-view="login"] .auth-form--login,
.auth-shell[data-view="login"] .auth-accent--login,
.auth-shell[data-view="register"] .auth-form--register,
.auth-shell[data-view="register"] .auth-accent--register,
.auth-shell[data-view="forgot"] .auth-form--forgot,
.auth-shell[data-view="forgot"] .auth-accent--login {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
    pointer-events: auto;
}

.auth-shell[data-view="forgot"] .auth-form--forgot {
    transform: translateY(0);
}

.auth-form-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.auth-form-subtitle {
    color: var(--brand-muted);
    margin-bottom: 22px;
}

.auth-accent-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-accent-text {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    margin-bottom: 24px;
}

.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch:hover {
    color: #0b0f14;
    background: var(--brand-accent);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.auth-actions {
    margin-top: 18px;
    text-align: center;
}

.btn-google {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #dadce0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
}

.btn-google:hover {
    background: #f8f9fa;
    color: #111827;
    border-color: #c6c9cc;
}

.btn-google.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-oauth-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.auth-debug {
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(0, 255, 163, 0.75);
    text-align: center;
}

.auth-back {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    border: 1px solid rgba(0, 255, 163, 0.35);
    background: rgba(6, 10, 18, 0.6);
    text-decoration: none;
    z-index: 2;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.auth-back:hover {
    transform: translateY(-2px);
    background: var(--brand-accent);
    color: #0b0f14;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 18px 0 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "accent";
        min-height: auto;
    }

    .auth-shell::before {
        inset: 0;
        clip-path: none;
        opacity: 0.2;
    }

    .auth-shell[data-mode="register"] {
        grid-template-areas:
            "form"
            "accent";
    }

    .auth-panel {
        padding: 24px 22px;
    }

    .auth-panel--form {
        border: none;
        border-bottom: 1px solid rgba(0, 255, 163, 0.15);
    }
}

@media (min-width: 1200px) {
    .auth-stack {
        max-width: 1180px;
    }

    .auth-shell {
        min-height: clamp(560px, 70vh, 760px);
    }
}

@media (max-width: 600px) {
    .auth-wrapper {
        padding: 84px 12px 20px;
    }

    .auth-panel {
        padding: 20px 18px;
    }

    .auth-card {
        border-radius: 20px;
    }

    .auth-back {
        top: 14px;
        inset-inline-end: 14px;
        width: 32px;
        height: 32px;
    }
}

.auth-title {
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0 0 6px;
    text-align: center;
}

.auth-subtitle {
    color: var(--brand-muted);
    margin-bottom: 22px;
    font-size: 0.95rem;
    text-align: center;
}

.form-label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.field {
    position: relative;
}

.field i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-muted);
}

.form-control {
    background: rgba(15, 22, 41, 0.9);
    border: 1px solid rgba(0, 255, 163, 0.2);
    color: #ffffff;
    padding: 12px 44px 12px 14px;
    border-radius: 14px;
    width: 100%;
}

.form-control:focus {
    background: rgba(15, 22, 41, 0.95);
    border-color: rgba(0, 255, 163, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 163, 0.15);
    color: #ffffff;
}

.form-check-input {
    background-color: rgba(15, 22, 41, 0.9);
    border-color: rgba(0, 255, 163, 0.25);
}

.link-muted {
    color: var(--brand-muted);
    text-decoration: none;
}

.link-muted:visited {
    color: var(--brand-muted);
}

.link-muted:hover,
.link-muted:focus {
    color: var(--brand-accent);
}

.auth-actions a {
    color: var(--brand-muted);
    text-decoration: none;
}

.auth-actions a:hover,
.auth-actions a:focus {
    color: var(--brand-accent);
}

.footer {
    background: rgba(11, 15, 20, 0.95);
    border-top: 1px solid var(--brand-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

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

.tools-page {
    padding: 120px 0 60px;
}

.tools-shell {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
    padding-top: 0.5rem;
}

.intro-toggle__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.intro-toggle__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    max-width: 720px;
}

.intro-toggle__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--brand-accent);
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.intro-toggle__icon {
    transition: transform 0.2s ease;
}

.intro-toggle__panel {
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 100%;
    display: flex;
    justify-content: center;
}

.intro-toggle__panel--open {
    opacity: 1;
    transform: translateY(0);
}

.intro-toggle__card {
    background: rgba(15, 22, 33, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 760px;
    text-align: center;
}

.core-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.core-input__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
}

.core-input__title {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
}

.core-input__subtitle {
    margin: 0;
    color: var(--brand-muted);
}

.core-input__box {
    background: rgba(15, 22, 33, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.core-input__label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.core-input__error {
    color: #f97373;
    font-size: 0.9rem;
    margin-top: -0.4rem;
}

.core-input__field {
    position: relative;
    display: flex;
    align-items: center;
}

.core-input__field i {
    position: absolute;
    right: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.core-input__field input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 15, 20, 0.9);
    color: #ffffff;
    padding: 14px 42px 14px 14px;
    text-align: right;
}

.scan-border {
    position: relative;
    border-radius: 18px;
    padding: 2px;
    width: min(720px, 100%);
    margin: 0 auto;
    isolation: isolate;
}

.scan-outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.scan-outline__path {
    fill: none;
    stroke-linejoin: round;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 30 70;
    animation: scanDash var(--scan-speed) linear infinite;
}

.scan-outline__glow {
    stroke-width: 5;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px var(--scan-glow)) drop-shadow(0 0 22px rgba(0, 245, 160, 0.6)) drop-shadow(0 0 34px rgba(0, 245, 160, 0.35));
}

.scan-outline__path--a {
    stroke: url(#scanGradientA);
    animation-delay: 0s;
}

.scan-outline__path--b {
    stroke: url(#scanGradientB);
    animation-delay: calc(var(--scan-speed) / -2);
}

.scan-inner {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--card-bg2), var(--card-bg));
    padding: 16px 54px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.scan-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #e5e7eb;
    font-size: 1.05rem;
    direction: rtl;
}

.scan-input::placeholder {
    color: rgba(229, 231, 235, 0.45);
}

.scan-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.65;
    pointer-events: none;
}

@keyframes scanDash {
    to {
        stroke-dashoffset: -100;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scan-outline__path {
        animation: none;
    }
}

.core-input__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.action-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.action-btn:hover {
    border-color: rgba(0, 255, 163, 0.4);
    color: #ffffff;
}

.action-btn--locked {
    border-style: dashed;
    opacity: 0.8;
}

.action-btn--active {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.lock-badge {
    font-size: 0.9rem;
}

.core-output {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.core-output__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.core-output__value {
    font-weight: 600;
    word-break: break-word;
}

.core-output__value--error {
    color: #f87171;
}

.core-output__actions {
    display: flex;
    justify-content: flex-start;
}

.core-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.password-strength {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.strength-weak {
    color: #f87171;
}

.strength-medium {
    color: #facc15;
}

.strength-strong {
    color: #34d399;
}

.otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 700;
}

.tools-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.tools-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.tools-subtitle {
    margin: 0;
    color: var(--brand-muted);
}

.tools-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tools-count,
.tools-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.tools-status--active {
    border-color: rgba(0, 255, 163, 0.4);
    color: var(--brand-accent);
}

.tools-status--muted {
    color: rgba(255, 255, 255, 0.6);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background: rgba(15, 22, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: #ffffff;
    text-decoration: none;
    min-height: 190px;
}

.tool-card:hover {
    border-color: rgba(0, 255, 163, 0.35);
    color: #ffffff;
}

.tool-card--locked {
    border-style: dashed;
    opacity: 0.6;
}

.tool-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand-accent);
    font-size: 1.2rem;
}

.tool-card__title {
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-card__lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.tool-card__desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.6;
}

.tool-card__footer {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--brand-accent);
}

.tool-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tool-detail {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.tool-detail__header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tool-detail__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.tool-detail__subtitle {
    margin: 0;
    color: var(--brand-muted);
}

.tool-detail__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.tool-detail__card {
    background: rgba(15, 22, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
}

.tool-detail__label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.tool-detail__value {
    font-size: 1.05rem;
    font-weight: 600;
    word-break: break-word;
}

.tool-detail__value--small {
    font-size: 0.9rem;
    font-weight: 500;
}

.tool-detail__actions {
    display: flex;
    justify-content: flex-start;
}

.footer.footer-minimal {
    padding: 1.5rem 0;
    margin-top: 2.5rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-cyber {
        padding: 130px 0 80px;
    }

    .hero-rings {
        width: 320px;
        height: 320px;
        right: -6%;
        top: 28%;
        opacity: 0.12;
    }

    .hero-dim {
        background: radial-gradient(circle at 50% 40%, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.85));
        opacity: 0.5;
    }

    .terminal {
        width: 80vw;
        top: 14%;
        right: 6%;
        font-size: 11px;
    }

    .hero-rings {
        display: none;
    }

    .tools-page {
        padding-top: 110px;
    }

    .tools-title {
        font-size: 1.8rem;
    }

    .core-input__title {
        font-size: 1.75rem;
    }
}

.link-info-page {
    padding: 140px 0 60px;
    position: relative;
    z-index: 1;
}

.link-info-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.link-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.link-info-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.link-info-subtitle {
    margin: 6px 0 0;
    color: var(--brand-muted);
}

.link-info-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-info-card {
    background: rgba(15, 22, 33, 0.92);
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.link-info-section-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.link-info-empty {
    background: rgba(15, 22, 33, 0.92);
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

.info-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 12px;
    align-items: center;
}

.info-row--stack {
    grid-template-columns: 1fr auto;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.info-field input,
.info-field .form-control {
    width: 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr);
    gap: 10px;
}

.notes-input {
    min-height: 120px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.icon-btn--danger {
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
}

.icon-btn--danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(11, 15, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.toggle-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    cursor: help;
}

.toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.toggle-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.toggle-status.is-enabled {
    color: var(--brand-accent);
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.2s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.2s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: rgba(0, 255, 163, 0.5);
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--brand-accent);
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
}

.modal-card {
    position: relative;
    background: rgba(15, 22, 33, 0.98);
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 24px;
    max-width: 420px;
    width: min(420px, 92%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 900px) {
    .info-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .info-row--stack {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .link-info-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .link-info-page {
        padding: 120px 0 40px;
    }

    .link-info-card {
        padding: 18px;
    }
}
