/* PWA Installation Screen Styles */
.pwa-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.pwa-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.pwa-step-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.pwa-step-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.pwa-step-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}

.pwa-step-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

:root {
    --bg-dark: #07090e;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --card-bg: rgba(14, 18, 27, 0.78);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-sub: #64748b;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body.diamond-v2-theme {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.14) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(14, 165, 233, 0.06) 0px, transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Viewport */
.viewport-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    justify-content: space-between;
}

.auth-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

/* Precision Glass Card - Crisp, Sharp, Dark Luxury */
.diamond-card {
    width: 100%;
    background: #0e121b;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: 
        0 24px 60px -15px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
    animation: formEntrance 0.25s ease-out both;
}

@keyframes formEntrance {
    from {
        opacity: 0.6;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diamond-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.diamond-card.shake {
    animation: cardShake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes cardShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}

.card-interior {
    padding: 40px 32px 34px;
}

/* Header */
.diamond-branding {
    text-align: center;
    margin-bottom: 30px;
}

.fancy-title {
    font-size: 28px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #ffffff;
}

.fancy-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* Input Field - Clean & Modern */
.fancy-input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-wrapper-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(8, 11, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    transition: all 0.25s var(--ease);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    overflow: hidden;
}

.input-icon-box {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin-left: 16px;
    color: var(--text-sub);
    flex-shrink: 0 !important;
    transition: color 0.2s;
    display: block;
}

.fancy-input-group input {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 16px 12px;
    color: #ffffff;
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    outline: none;
}

.fancy-input-group input::placeholder {
    color: #64748b;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 13px;
}

.input-wrapper-inner:focus-within {
    border-color: var(--border-hover);
    background: rgba(13, 19, 32, 0.9);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-wrapper-inner:focus-within .input-icon-box {
    color: var(--primary-light);
}

.paste-btn-inline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-muted);
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-right: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.paste-btn-inline svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
}

.paste-btn-inline:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #ffffff;
}

/* Minimalist Browser Warning Box - Dark Luxury */
.browser-warning-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.25s var(--ease);
}

.browser-warning-box:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.browser-warn-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.warn-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
    flex-shrink: 0;
}

.warn-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
}

.warn-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 9px;
}

.warn-desc strong {
    color: #ffffff;
    font-weight: 600;
}

.warn-disclaimer {
    font-size: 11px;
    line-height: 1.45;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.25);
    border-left: 2px solid rgba(59, 130, 246, 0.5);
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 12px;
}

.warn-disclaimer span {
    color: #cbd5e1;
}

/* User Confirmation Checkbox */
.browser-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding-top: 2px;
    transition: transform 0.2s;
}

.browser-check-wrap.shake {
    animation: checkShake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes checkShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.browser-check-wrap input {
    display: none;
}

.b-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    background: rgba(8, 11, 18, 0.85);
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.browser-check-wrap:hover .b-box {
    border-color: rgba(255, 255, 255, 0.45);
}

.browser-check-wrap input:checked + .b-box {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.b-box::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 11px;
}

.browser-check-wrap input:checked + .b-box::after {
    display: flex;
}

.b-txt {
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.4;
    transition: color 0.2s;
}

.browser-check-wrap input:checked ~ .b-txt {
    color: #ffffff;
}

/* Button - Solid, Clean, Sleek */
.action-zone {
    margin-top: 6px;
}

.diamond-btn {
    width: 100%;
    background: #ffffff;
    color: #0b0f19;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s var(--ease);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(255, 255, 255, 0.25);
}

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

.diamond-btn.loading {
    opacity: 0.7;
    pointer-events: none;
    background: #1e293b;
    color: #94a3b8;
}

.diamond-btn.success {
    background: #10b981 !important;
    color: #ffffff !important;
}

.diamond-btn.error {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.diamond-btn.btn-locked {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    box-shadow: none;
}

.diamond-btn.btn-locked:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.16);
}

.diamond-btn.cooldown {
    opacity: 0.75;
    background: #1e293b !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-lbl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-lbl svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.diamond-btn:hover .btn-lbl svg {
    transform: translateX(3px);
}

#btn-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

/* Podpunkty (Info Pulse Section) */
.info-pulse-section {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
}

.pulse-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
    flex-shrink: 0;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.pulse-item p {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.pulse-item span {
    color: #60a5fa;
    cursor: pointer;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 5px;
    transition: all 0.2s;
    margin-left: 3px;
}

.pulse-item span:hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
}

/* Toast */
.copy-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #f8fafc;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.copy-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Feedback */
.diamond-feedback {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s var(--ease);
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.9);
}

.diamond-feedback.active {
    opacity: 1;
    transform: translateY(0);
}

.diamond-feedback.error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

.diamond-feedback.error .feedback-icon { color: #f87171; }
.diamond-feedback.error .feedback-text { color: #fca5a5; }

.diamond-feedback.success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}

.diamond-feedback.success .feedback-icon { color: #34d399; }
.diamond-feedback.success .feedback-text { color: #6ee7b7; }

.feedback-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.feedback-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
}

/* Footer */
.diamond-footer {
    text-align: center;
    padding: 14px 0;
    opacity: 0.4;
}

.copyright {
    font-size: 11px;
    color: var(--text-muted);
}

/* Modal Legal Warning - Diamond Dark Luxury */
.diamond-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.diamond-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.diamond-modal-card {
    width: 100%;
    max-width: 440px;
    background: #0e121b;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: 
        0 24px 60px -15px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 34px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(16px) scale(0.98);
    transition: all 0.3s var(--ease);
}

.diamond-modal-backdrop.active .diamond-modal-card {
    transform: translateY(0) scale(1);
}

.legal-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-heading {
    font-size: 22px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    color: #ffffff;
}

.legal-text-scroll {
    text-align: left;
}

.highlight-p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.highlight-p strong {
    color: #ffffff;
    font-weight: 700;
}

.law-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 2px solid rgba(59, 130, 246, 0.6);
    margin-bottom: 22px;
}

.law-article {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.law-box p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.legal-options {
    margin-bottom: 22px;
}

.d-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    user-select: none;
}

.d-check input { display: none; }

.d-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.d-check:hover .d-box {
    border-color: rgba(255, 255, 255, 0.4);
}

.d-check input:checked + .d-box {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.d-box::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 11px;
}

.d-check input:checked + .d-box::after { display: flex; }

.d-txt {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
}

.d-check input:checked ~ .d-txt {
    color: #ffffff;
}

.modal-enter-btn {
    width: 100%;
    background: #ffffff;
    color: #0b0f19;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-enter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.12);
    color: #64748b;
    box-shadow: none;
    pointer-events: none;
}

.modal-enter-btn:not([disabled]):hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(255, 255, 255, 0.25);
}

.modal-enter-btn:not([disabled]):active {
    transform: translateY(0);
}

.modal-enter-btn .btn-lbl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-enter-btn .btn-lbl svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.modal-enter-btn:not([disabled]):hover .btn-lbl svg {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    body.diamond-v2-theme {
        padding: 0;
        margin: 0;
        width: 100vw;
        overflow-x: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .viewport-wrapper {
        padding: 20px 16px;
        min-height: 100dvh;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .auth-box {
        margin: auto 0;
        width: 100%;
        max-width: 380px;
        display: flex;
        justify-content: center;
    }

    .diamond-card {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.9);
        box-sizing: border-box;
    }

    .card-interior {
        padding: 28px 18px 24px;
        box-sizing: border-box;
        width: 100%;
    }

    .diamond-branding {
        margin-bottom: 24px;
    }

    .fancy-title {
        font-size: 26px;
        letter-spacing: -0.5px;
    }

    .fancy-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .fancy-input-group {
        margin-bottom: 16px;
        width: 100%;
    }

    .input-wrapper-inner {
        border-radius: 12px;
        width: 100%;
    }

    .input-icon-box {
        width: 16px !important;
        min-width: 16px !important;
        max-width: 16px !important;
        height: 16px !important;
        min-height: 16px !important;
        max-height: 16px !important;
        margin-left: 12px;
        flex-shrink: 0 !important;
    }

    .fancy-input-group input {
        padding: 14px 10px;
        font-size: 13px;
        letter-spacing: 1px;
    }

    .paste-btn-inline {
        padding: 5px 8px;
        font-size: 9px;
        margin-right: 10px;
    }

    .diamond-btn {
        padding: 14px;
        font-size: 13px;
        border-radius: 12px;
    }

    .info-pulse-section {
        margin-top: 20px;
        padding: 14px 14px;
        gap: 8px;
        border-radius: 12px;
    }

    .pulse-item p {
        font-size: 10.5px;
        line-height: 1.4;
    }

    .diamond-footer {
        padding: 10px 0;
    }

    .copyright {
        font-size: 10px;
    }

    .diamond-modal-card {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .modal-heading {
        font-size: 18px;
        margin-bottom: 16px;
    }
}