/* ============================================================
   Styly pro nákupní Premium Modal (stavarskyweb.cz)
   ============================================================ */

.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
}

.premium-modal-container {
    background: #ffffff;
    color: #222222;
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
    position: relative;
    animation: premiumModalFadeIn 0.25s ease-out;
}

@keyframes premiumModalFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.premium-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #222222;
    color: #ffffff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.premium-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #f9d423;
}

.premium-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
}

.premium-modal-close:hover {
    color: #f9d423;
}

.premium-modal-body {
    padding: 25px 30px;
}

/* Přepínač období (Měsíční / Roční) */
.premium-period-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.period-label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

.premium-badge-discount {
    background: #28a745;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
}

.premium-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

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

.premium-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
}

.premium-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
}

input:checked + .premium-slider {
    background-color: #f9d423;
}

input:checked + .premium-slider:before {
    transform: translateX(24px);
    background-color: #222;
}

.premium-slider.round {
    border-radius: 28px;
}

.premium-slider.round:before {
    border-radius: 50%;
}

/* Karty plánů */
.premium-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.premium-plan-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.premium-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.premium-plan-card.featured-plan {
    border: 2px solid #f9d423;
    background: #fffdf5;
}

.plan-ribbon {
    position: absolute;
    top: -12px;
    right: 18px;
    background: #f9d423;
    color: #222;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.plan-card-header h3 {
    margin: 0 0 4px 0;
    font-size: 19px;
    color: #222;
}

.plan-subtitle {
    margin: 0;
    font-size: 12px;
    color: #777;
}

.plan-card-price {
    margin: 15px 0 18px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-value {
    font-size: 28px;
    font-weight: bold;
    color: #111;
}

.price-period {
    font-size: 13px;
    color: #666;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
    flex-grow: 1;
}

.plan-features-list li {
    font-size: 13px;
    color: #444;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features-list li i {
    color: #28a745;
    font-size: 12px;
}

.premium-btn-choose {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    background: #ffffff;
    color: #222;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.premium-btn-choose:hover {
    background: #222;
    color: #fff;
}

.premium-btn-choose.featured-btn {
    background: #f9d423;
    border: 1px solid #e0be1f;
    color: #111;
}

.premium-btn-choose.featured-btn:hover {
    background: #222;
    color: #f9d423;
    border-color: #222;
}

.premium-plan-card.current-active-plan .premium-btn-choose {
    background: #e9ecef;
    border-color: #ced4da;
    color: #6c757d;
    cursor: not-allowed;
}

.plan-btn-subtext {
    display: block;
    text-align: center;
    font-size: 11.5px;
    color: #777777;
    margin-top: 8px;
    letter-spacing: 0.2px;
}

.plan-btn-subtext i {
    font-size: 10px;
    margin-right: 4px;
    color: #999999;
}

.premium-order-notice-bar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #28a745;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #495057;
    line-height: 1.45;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-order-notice-bar i {
    color: #28a745;
    font-size: 15px;
    flex-shrink: 0;
}

/* Varování před upgradem */
.premium-upgrade-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Slevový kód */
.premium-discount-section {
    border-top: 1px solid #eeeeee;
    padding-top: 18px;
}

.premium-discount-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.premium-discount-input-group {
    display: flex;
    gap: 8px;
    max-width: 380px;
}

.premium-discount-input-group input {
    flex-grow: 1;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    text-transform: uppercase;
}

.premium-discount-input-group button {
    padding: 9px 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.premium-discount-input-group button:hover {
    background: #f9d423;
    color: #111;
}

.premium-discount-message {
    font-size: 12px;
    margin-top: 6px;
}
.premium-discount-message.success { color: #28a745; font-weight: bold; }
.premium-discount-message.error { color: #dc3545; }

/* Krok 2: Platební instrukce */
.premium-payment-summary {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.premium-payment-summary h3 {
    margin: 0 0 5px 0;
    color: #28a745;
    font-size: 18px;
}

.summary-amount-box {
    margin-top: 10px;
}

.amount-label {
    font-size: 14px;
    color: #555;
    margin-right: 8px;
}

.amount-number {
    font-size: 24px;
    font-weight: bold;
    color: #111;
}

.premium-payment-instructions-grid {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 20px;
}

.payment-qr-col {
    text-align: center;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.payment-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f4fd;
    color: #0b69a3;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-method-badge.badge-bank {
    background: #eaf7ec;
    color: #1e7e34;
}

.payment-method-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.bank-details-intro {
    font-size: 12px;
    color: #666;
    margin: 0 0 12px 0;
}

.qr-label {
    font-size: 12px;
    margin: 0 0 8px 0;
    color: #555;
    font-weight: 600;
}

.payment-qr-img {
    width: 170px;
    height: 170px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.qr-subtext {
    font-size: 11px;
    color: #777;
    margin: 8px 0 0 0;
    line-height: 1.35;
}

.payment-bank-details-col {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.payment-details-table {
    width: 100%;
    border-collapse: collapse;
    color: #222222;
}

.payment-details-table td {
    padding: 6px 4px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #222222;
}

.payment-details-table td strong {
    color: #111111;
    font-weight: 700;
}

.payment-details-table td span {
    color: #222222;
}

.payment-details-table td:first-child {
    color: #555555;
    width: 38%;
}

.highlight-vs {
    color: #d9534f;
    font-size: 15px;
    font-weight: bold;
}

.btn-copy-field {
    background: #f1f3f5;
    border: 1px solid #ced4da;
    color: #495057;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
    vertical-align: middle;
}

.btn-copy-field:hover {
    background: #e2e6ea;
    color: #212529;
    border-color: #adb5bd;
}

.btn-copy-field.copied {
    background: #28a745;
    color: #ffffff;
    border-color: #28a745;
}

.payment-vs-warning {
    margin-top: 12px;
    font-size: 12px;
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ffeeba;
    line-height: 1.4;
}

.premium-payment-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

.premium-btn-check-payment {
    padding: 12px 22px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
}

.premium-btn-check-payment:hover {
    background: #218838;
}

.premium-btn-close-payment {
    padding: 12px 20px;
    background: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.premium-check-payment-status {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    min-height: 20px;
}

@media (max-width: 768px) {
    .premium-cards-grid {
        grid-template-columns: 1fr;
    }
    .premium-payment-instructions-grid {
        flex-direction: column;
    }
}

/* ============================================================
   Moderní Toast notifikace pro limity a upozornění Premium
   ============================================================ */
.premium-toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 440px;
    width: calc(100vw - 40px);
    pointer-events: none;
}

.premium-toast {
    pointer-events: auto;
    background: #1e2229;
    color: #f8f9fa;
    border-left: 4px solid #f9d423;
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    animation: premiumToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
}

.premium-toast.hiding {
    animation: premiumToastSlideOut 0.25s ease-in forwards;
}

.premium-toast-icon {
    color: #f9d423;
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.premium-toast-content {
    flex-grow: 1;
}

.premium-toast-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    font-size: 14px;
}

.premium-toast-message {
    color: #cfd8dc;
    margin-bottom: 0;
}

.premium-toast-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 12px;
    background: #f9d423;
    color: #1e2229;
    font-weight: 700;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.premium-toast-action-btn:hover {
    background: #ffe600;
    transform: translateY(-1px);
}

.premium-toast-close {
    background: none;
    border: none;
    color: #8c9ba5;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    margin-left: 4px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.premium-toast-close:hover {
    color: #ffffff;
}

@keyframes premiumToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes premiumToastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

@media (max-width: 480px) {
    .premium-toast-container {
        top: 15px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}

