/* PWA — ana sayfa modal (admin home-landing benzeri) + /Home/App */

.pwa-modal.modal.fade .modal-dialog {
    transform: scale(0.92) translateY(16px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
}

.pwa-modal.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.pwa-modal__dialog {
    max-width: min(380px, calc(100vw - 1.5rem));
    margin-inline: auto;
}

.pwa-modal__content.pwa-modal-hl {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.pwa-modal-hl__banner {
    --pwa-hl-cyan: #00e7ff;
    --pwa-hl-purple: #8c5cff;
    --pwa-hl-glass: rgba(255, 255, 255, 0.085);
    --pwa-hl-border: rgba(255, 255, 255, 0.16);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-family: var(--font-persian, "Shabnam", Tahoma, sans-serif);
    color: #fff;
    direction: rtl;
    text-align: right;
    background:
        radial-gradient(circle at 15% 18%, rgba(0, 231, 255, 0.28), transparent 32%),
        radial-gradient(circle at 82% 78%, rgba(140, 92, 255, 0.22), transparent 34%),
        linear-gradient(135deg, #050816, #081548 55%, #080a22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pwa-modal-hl__banner::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: linear-gradient(
        110deg,
        transparent 0 20%,
        rgba(0, 231, 255, 0.14) 23%,
        transparent 27% 47%,
        rgba(140, 92, 255, 0.12) 50%,
        transparent 55% 100%
    );
    animation: pwa-hl-sweep 7s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.pwa-modal-hl__banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px);
    background-size: 32px 32px;
    opacity: 0.07;
    transform: perspective(700px) rotateX(55deg) translateY(40px);
    animation: pwa-hl-grid 5s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.pwa-modal-hl__speed-line {
    position: absolute;
    right: -45%;
    width: 45%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--pwa-hl-cyan), transparent);
    opacity: 0.8;
    animation: pwa-hl-speed 4.4s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.pwa-modal-hl__speed-line:nth-child(1) { top: 18%; animation-delay: 0s; }
.pwa-modal-hl__speed-line:nth-child(2) {
    top: 48%;
    animation-delay: 1.1s;
    background: linear-gradient(90deg, transparent, #7e75ff, transparent);
}
.pwa-modal-hl__speed-line:nth-child(3) { top: 72%; animation-delay: 2.2s; }

.pwa-modal-hl__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.1rem 1.25rem 0.5rem;
}

.pwa-modal-hl__copy {
    animation: pwa-hl-copy-in 0.75s ease 0.12s both;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.pwa-modal-hl__badge {
    display: none;
}

.pwa-modal-hl__site-name {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fff, #89f4ff, #9a8cff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pwa-modal-hl__tagline {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #89f4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pwa-modal-hl__line {
    margin: 0;
    display: block;
    width: 100%;
    font-size: 0.82rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.pwa-modal-hl__visual {
    position: relative;
    width: 100%;
    height: 240px;
    margin-bottom: 0.85rem;
    animation: pwa-hl-copy-in 0.75s ease both;
}

.pwa-modal-hl__halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-radius: 50%;
    border: 1px solid rgba(0, 231, 255, 0.18);
    animation: pwa-hl-spin 14s linear infinite;
    box-shadow: inset 0 0 30px rgba(0, 231, 255, 0.06);
}

.pwa-modal-hl__phone {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 118px;
    height: 212px;
    transform: translate(-50%, -50%) rotate(6deg);
    border-radius: 24px;
    background: linear-gradient(180deg, #12226d, #07102e);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.42),
        0 0 28px rgba(0, 231, 255, 0.22);
    overflow: hidden;
    animation: pwa-hl-phone-float 3.6s ease-in-out infinite;
}

.pwa-modal-hl__phone::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    z-index: 2;
}

.pwa-modal-hl__screen {
    position: absolute;
    inset: 0;
    padding: 36px 10px 18px;
    background:
        radial-gradient(circle at 50% 32%, rgba(0, 231, 255, 0.2), transparent 32%),
        linear-gradient(180deg, rgba(37, 62, 170, 0.95), rgba(5, 9, 30, 0.98));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pwa-modal-hl__energy {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.85rem;
    border: 1px solid rgba(143, 245, 255, 0.6);
    background: radial-gradient(circle, rgba(0, 231, 255, 0.22), transparent);
    box-shadow: 0 0 16px rgba(0, 231, 255, 0.35);
    animation: pwa-hl-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

.pwa-modal-hl__meter {
    width: 72%;
}

.pwa-modal-hl__bar {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.pwa-modal-hl__bar span {
    display: block;
    height: 100%;
    width: 62%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00e7ff, #7c62ff);
    box-shadow: 0 0 12px rgba(0, 231, 255, 0.4);
    animation: pwa-hl-bar 2.5s ease-in-out infinite;
}

.pwa-modal-hl__spark {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #aaf7ff;
    box-shadow: 0 0 12px #aaf7ff;
    animation: pwa-hl-spark 2.2s ease-in-out infinite;
}

.pwa-modal-hl__spark--1 { top: 18px; left: 28%; }
.pwa-modal-hl__spark--2 { top: 52%; right: 22%; animation-delay: 0.45s; }
.pwa-modal-hl__spark--3 { bottom: 16px; left: 32%; animation-delay: 0.95s; }

.pwa-modal-hl__actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem 1.15rem;
}

.pwa-modal-hl__btn {
    min-height: 46px;
    padding: 0 1.1rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    width: 100%;
    cursor: pointer;
}

.pwa-modal-hl__btn--main {
    color: #fff;
    background: linear-gradient(90deg, #00dfff, #506dff);
    box-shadow: 0 10px 26px rgba(0, 223, 255, 0.28);
}

.pwa-modal-hl__btn--main:hover,
.pwa-modal-hl__btn--main:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 223, 255, 0.34);
}

.pwa-modal-hl__btn--ghost {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.pwa-modal-hl__btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes pwa-hl-sweep {
    to { transform: translateX(28%); }
}

@keyframes pwa-hl-grid {
    to { background-position: 32px 32px; }
}

@keyframes pwa-hl-speed {
    0% { transform: translateX(0); opacity: 0; }
    12% { opacity: 0.85; }
    88% { opacity: 0.85; }
    100% { transform: translateX(-320%); opacity: 0; }
}

@keyframes pwa-hl-copy-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pwa-hl-spin {
    to { transform: rotate(360deg); }
}

@keyframes pwa-hl-phone-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(6deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(4deg) translateY(-10px); }
}

@keyframes pwa-hl-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.06); filter: brightness(1.25); }
}

@keyframes pwa-hl-bar {
    0% { width: 38%; }
    50% { width: 88%; }
    100% { width: 58%; }
}

@keyframes pwa-hl-spark {
    0%, 100% { transform: scale(0.7); opacity: 0.4; }
    50% { transform: scale(1.4); opacity: 1; }
}

@media (max-width: 420px) {
    .pwa-modal-hl__visual {
        height: 220px;
    }

    .pwa-modal-hl__phone {
        width: 108px;
        height: 194px;
    }

    .pwa-modal-hl__site-name {
        font-size: 1.08rem;
    }

    .pwa-modal-hl__tagline {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwa-modal.modal.fade .modal-dialog {
        transition: none;
    }

    .pwa-modal-hl__banner::before,
    .pwa-modal-hl__banner::after,
    .pwa-modal-hl__speed-line,
    .pwa-modal-hl__halo,
    .pwa-modal-hl__phone,
    .pwa-modal-hl__energy,
    .pwa-modal-hl__bar span,
    .pwa-modal-hl__spark,
    .pwa-modal-hl__copy,
    .pwa-modal-hl__visual {
        animation: none !important;
    }
}

/* —— /Home/App —— */
.pwa-app-page {
    direction: rtl;
    font-family: var(--font-persian, "Shabnam", Tahoma, sans-serif);
    padding: 1.25rem 0 2.5rem;
}

.pwa-app-page__hero {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 20px;
    background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.pwa-app-page__icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22);
    border: 3px solid #fff;
}

.pwa-app-page__title {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}

.pwa-app-page__lead {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 28rem;
    margin-inline: auto;
}

.pwa-app-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 1.35rem 1.25rem;
    margin-bottom: 1rem;
}

.pwa-app-card__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.pwa-app-card__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.pwa-app-card__head i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: #2563eb;
    font-size: 1rem;
}

.pwa-app-card__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.pwa-manual-note {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.84rem;
    line-height: 1.65;
}

.pwa-copy-link {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.65rem;
    direction: ltr;
}

.pwa-copy-link__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    color: #0f172a;
    background: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pwa-copy-link__btn {
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    white-space: nowrap;
    direction: rtl;
}

.pwa-copy-link__btn:disabled {
    opacity: 0.85;
}

.pwa-native-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.pwa-native-btn:hover:not(:disabled) {
    filter: brightness(1.04);
    transform: translateY(-1px);
    color: #fff;
}

.pwa-native-btn:disabled,
.pwa-native-btn.is-busy {
    opacity: 0.75;
    cursor: wait;
}

.pwa-native-btn__hint {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

.pwa-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.pwa-steps__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.pwa-steps__num {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    flex-shrink: 0;
}

.pwa-steps__body strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #0f172a;
    font-size: 0.92rem;
}

.pwa-steps__body p {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.65;
}

.pwa-already {
    text-align: center;
    padding: 1.5rem 1rem;
}

.pwa-already h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.pwa-already p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pwa-already__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

@media (min-width: 992px) {
    .pwa-app-page {
        max-width: 520px;
        margin-inline: auto;
    }
}
