/**
 * Zentura Module — Frontend Styles (Customer Downloads)
 */

/* Download button */
.wpi-frontend-download {
    cursor: pointer;
    min-width: 100px;
    text-align: center;
    position: relative;
}

.wpi-frontend-download:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Progress container */
.wpi-frontend-dl-status {
    margin-top: 8px;
    min-height: 0;
}

.wpi-fdl-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.wpi-fdl-bar {
    flex: 1;
    max-width: 200px;
    height: 12px;
    background: #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.wpi-fdl-fill {
    height: 100%;
    background: linear-gradient(90deg, #7f54b3, #9b6dd7);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}

.wpi-fdl-fill.wpi-fdl-pulse {
    animation: wpiFdlPulse 1.5s ease-in-out infinite;
}

@keyframes wpiFdlPulse {
    0%, 100% { opacity: 0.7; width: 40%; }
    50% { opacity: 1; width: 70%; }
}

.wpi-fdl-text {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

/* Success message */
.wpi-fdl-done {
    color: #46b450;
    font-size: 13px;
    font-weight: 600;
}

/* Error message */
.wpi-fdl-error {
    color: #dc3232;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .wpi-fdl-progress {
        flex-direction: column;
        align-items: flex-start;
    }

    .wpi-fdl-bar {
        max-width: 100%;
        width: 100%;
    }
}

/* Version badge */
.wpi-version-badge {
    display: inline-block;
    background: #f0f0f1;
    color: #1d2327;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid #dcdcde;
}

/* Date badge */
.wpi-date-badge {
    display: inline-block;
    color: #50575e;
    font-size: 13px;
    white-space: nowrap;
}

/* Update notification badge */
.wpi-update-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    animation: wpi-pulse 2s ease-in-out infinite;
    cursor: help;
}

@keyframes wpi-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ── Demo Button (Short Description, below GPL) ── */
.wpi-demo-wrap {
    margin-top: 10px;
}

.wpi-demo-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #0073aa, #005177) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 15px !important;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
    box-sizing: border-box;
}

.wpi-demo-button:hover {
    background: linear-gradient(135deg, #005177, #003a57) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
    transform: translateY(-1px);
}

.wpi-demo-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 115, 170, 0.3);
}

.wpi-demo-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.wpi-client-download-btn,
.wpi-client-banner .wpi-client-download-btn,
.woocommerce-account .wpi-client-banner .wpi-client-download-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px !important;
    background: #116062 !important;
    color: #ffffff !important;
    border: 1px solid #0c4c4e !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(12, 76, 78, 0.22) !important;
}

.wpi-client-download-btn:hover,
.wpi-client-banner .wpi-client-download-btn:hover,
.woocommerce-account .wpi-client-banner .wpi-client-download-btn:hover {
    background: #0c4c4e !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* GPL link styling in short description */
.woocommerce-product-details__short-description a[href*="gpl-lisans"] {
    color: #0073aa;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.woocommerce-product-details__short-description a[href*="gpl-lisans"]:hover {
    color: #005177;
    text-decoration-style: solid;
}

/* ── Email Opt-in Toggle Switch ── */
.wpi-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.wpi-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wpi-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.wpi-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.wpi-switch input:checked + .wpi-slider {
    background: #667eea;
}

.wpi-switch input:checked + .wpi-slider::before {
    transform: translateX(22px);
}

.wpi-switch input:focus + .wpi-slider {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* My Sites page */
.woocommerce-account .wpi-sites-wrap {
    width: 100%;
    max-width: 100%;
}

.woocommerce-account .wpi-sites-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.woocommerce-account .wpi-sites-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woocommerce-account .wpi-sites-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.woocommerce-account .wpi-sites-heading-icon {
    display: inline-flex;
    margin-right: 10px;
}

.woocommerce-account .wpi-sites-counter {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
}

.woocommerce-account .wpi-sites-counter strong {
    color: #0f172a;
}

.woocommerce-account .wpi-sites-note {
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fb 100%);
    border: 1px solid #d9e5f1;
    border-radius: 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    padding: 16px 18px;
}

.woocommerce-account .wpi-sites-note strong {
    color: #0f172a;
}

.woocommerce-account .wpi-site-add-form {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    margin-bottom: 20px;
    padding: 20px;
}

.woocommerce-account .wpi-site-add-label {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.woocommerce-account .wpi-site-add-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.woocommerce-account .wpi-site-input {
    flex: 1 1 320px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
}

.woocommerce-account .wpi-site-input:focus {
    border-color: #116062;
    box-shadow: 0 0 0 4px rgba(17, 96, 98, 0.12);
    outline: none;
}

.woocommerce-account .wpi-site-add-btn {
    min-height: 52px;
    padding: 0 20px;
    background: #116062;
    background-image: none !important;
    border: 0;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.woocommerce-account .wpi-site-add-btn:hover {
    background: #0c4c4e;
}

.woocommerce-account .wpi-site-add-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.woocommerce-account .wpi-site-add-status {
    min-height: 22px;
    margin-top: 12px;
    font-size: 13px;
}

.woocommerce-account .wpi-site-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 36px 24px;
    color: #64748b;
}

.woocommerce-account .wpi-site-empty h4 {
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: 22px;
}

.woocommerce-account .wpi-site-empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.woocommerce-account .wpi-site-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    margin-bottom: 12px;
    padding: 18px 20px;
}

.woocommerce-account .wpi-site-card-info {
    flex: 1 1 auto;
    min-width: 0;
}

.woocommerce-account .wpi-site-card-url {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
}

.woocommerce-account .wpi-site-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.woocommerce-account .wpi-site-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 11px;
    font-weight: 700;
}

.woocommerce-account .wpi-site-card-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.woocommerce-account .wpi-site-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.woocommerce-account .wpi-site-remove-btn {
    padding: 10px 14px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    color: #be123c;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.woocommerce-account .wpi-site-remove-btn:hover {
    background: #ffe4e6;
}

.woocommerce-account .wpi-site-upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #116062 100%) !important;
    border-radius: 18px;
    margin-top: 20px;
    padding: 24px;
}

.woocommerce-account .wpi-site-upgrade .wpi-site-upgrade-copy {
    color: rgba(255, 255, 255, 0.9) !important;
}

.woocommerce-account .wpi-site-upgrade .wpi-site-upgrade-copy strong {
    display: block;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.woocommerce-account .wpi-site-upgrade .wpi-site-upgrade-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px;
    line-height: 1.7;
}

.woocommerce-account .wpi-site-upgrade a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    background: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 12px;
    color: #116062 !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.woocommerce-account .wpi-site-upgrade a:hover {
    background: #f0fdfa !important;
    color: #0c4c4e !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Limit Reached Banner */
.woocommerce-account .wpi-site-limit-banner {
    background: linear-gradient(180deg, #f0fdfa 0%, #e6f7f5 100%);
    border: 1px solid #99d5cf;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #134e4a;
    line-height: 1.6;
}

.woocommerce-account .wpi-site-limit-banner strong {
    color: #0f172a;
    font-size: 14px;
}

.woocommerce-account .wpi-site-limit-banner a {
    color: #116062;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.woocommerce-account .wpi-site-limit-banner a:hover {
    color: #0c4c4e;
}

/* Change Request Button */
.woocommerce-account .wpi-site-change-btn {
    padding: 10px 16px;
    background: #116062;
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.15s;
}

.woocommerce-account .wpi-site-change-btn:hover {
    background: #0c4c4e;
}

/* Change Request Form */
.woocommerce-account .wpi-change-form {
    margin-top: 12px;
    padding: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f0fdfa 100%);
    border: 1px solid #99d5cf;
    border-radius: 14px;
}

.woocommerce-account .wpi-change-form label.wpi-change-form-title {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    display: block;
    margin-bottom: 8px;
}

.woocommerce-account .wpi-change-form .wpi-change-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    font-size: 13px;
    cursor: pointer;
    color: #334155;
}

.woocommerce-account .wpi-change-form .wpi-change-field-label {
    font-weight: 600;
    font-size: 12px;
    color: #334155;
    display: block;
    margin-bottom: 4px;
}

.woocommerce-account .wpi-change-form input[type="text"],
.woocommerce-account .wpi-change-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #99d5cf;
    border-radius: 10px;
    font-size: 13px;
    box-sizing: border-box;
    background: #fff;
    color: #0f172a;
}

.woocommerce-account .wpi-change-form input[type="text"]:focus,
.woocommerce-account .wpi-change-form textarea:focus {
    border-color: #116062;
    box-shadow: 0 0 0 3px rgba(17, 96, 98, 0.12);
    outline: none;
}

.woocommerce-account .wpi-change-form .wpi-change-submit-btn {
    background: #116062;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.15s;
}

.woocommerce-account .wpi-change-form .wpi-change-submit-btn:hover {
    background: #0c4c4e;
}

.woocommerce-account .wpi-change-form .wpi-change-cancel-btn {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}

.woocommerce-account .wpi-change-form .wpi-change-cancel-btn:hover {
    background: #cbd5e1;
}

/* Resolved Request Badges */
.woocommerce-account .wpi-resolved-badge {
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.6;
}

.woocommerce-account .wpi-resolved-badge.approved {
    background: linear-gradient(180deg, #f0fdf4 0%, #e8fbe9 100%);
    border: 1px solid #86efac;
    color: #166534;
}

.woocommerce-account .wpi-resolved-badge.rejected {
    background: linear-gradient(180deg, #fef2f2 0%, #fbe8e8 100%);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.woocommerce-account .wpi-resolved-badge .wpi-resolved-note {
    display: block;
    margin-top: 4px;
    font-style: italic;
    opacity: 0.85;
}

.woocommerce-account .wpi-resolved-badge .wpi-resolved-date {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    opacity: 0.6;
}

/* Pending Request Badge in Actions */
.woocommerce-account .wpi-pending-action-label {
    font-size: 12px;
    color: #92400e;
    font-weight: 600;
}

@media (max-width: 767px) {
    .woocommerce-account .wpi-sites-header,
    .woocommerce-account .wpi-site-card,
    .woocommerce-account .wpi-site-upgrade,
    .woocommerce-account .wpi-site-add-row {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce-account .wpi-site-remove-btn,
    .woocommerce-account .wpi-site-add-btn,
    .woocommerce-account .wpi-site-upgrade a,
    .woocommerce-account .wpi-site-change-btn {
        width: 100%;
        text-align: center;
    }

    .woocommerce-account .wpi-change-form .wpi-change-radio-label {
        display: flex;
        margin-right: 0;
        margin-bottom: 6px;
    }
}

/* =========================================================================
   WHEEL (ÇARKIFELEK) — Frontend CSS
   ========================================================================= */

.wpi-wheel-container {
    max-width: 640px;
    margin: 0 auto;
    font-family: var(--zentura-font-family, 'Inter'), -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
.wpi-wheel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--zentura-border, #e0e0e0);
}
.wpi-wheel-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--zentura-primary, #000);
}
.wpi-wheel-credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--zentura-accent, #116062);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}
.wpi-wheel-credits-count {
    font-size: 1rem;
    font-weight: 800;
}

/* Wheel Stage */
.wpi-wheel-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1.25rem;
    aspect-ratio: 1;
}
.wpi-wheel-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    will-change: transform;
    box-shadow:
        0 0 0 6px var(--zentura-accent, #116062),
        0 0 0 10px rgba(17, 96, 98, 0.15),
        0 6px 24px rgba(0, 0, 0, 0.12);
}
.wpi-wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 26px solid var(--zentura-accent, #116062);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* Center hub */
.wpi-wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--zentura-secondary, #fff);
    border: 3px solid var(--zentura-accent, #116062);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--zentura-accent, #116062);
    z-index: 5;
}

/* Spin Button */
.wpi-wheel-spin-btn {
    display: block;
    margin: 0 auto 1rem;
    padding: 0.85rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--zentura-secondary, #fff);
    background: var(--zentura-primary, #000);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wpi-wheel-spin-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}
.wpi-wheel-spin-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--zentura-gray, #666);
    box-shadow: none;
    transform: none;
}
.wpi-wheel-spin-btn.spinning {
    pointer-events: none;
    opacity: 0.6;
}

/* Countdown Timer */
.wpi-wheel-countdown {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, rgba(17, 96, 98, 0.06) 0%, rgba(26, 188, 156, 0.06) 100%);
    border: 1px solid rgba(17, 96, 98, 0.15);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--zentura-primary, #000);
}
.wpi-wheel-countdown i {
    color: var(--zentura-accent, #116062);
    font-size: 1rem;
}
.wpi-wheel-countdown strong {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--zentura-accent, #116062);
    letter-spacing: 1px;
}

/* Event Banner */
.wpi-wheel-event-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(17, 96, 98, 0.06) 0%, rgba(26, 188, 156, 0.06) 100%);
    border: 1px solid rgba(17, 96, 98, 0.15);
    border-radius: 12px;
}
.wpi-wheel-event-banner > i {
    font-size: 1.2rem;
    color: var(--zentura-accent, #116062);
    flex-shrink: 0;
}
.wpi-wheel-event-banner > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.wpi-wheel-event-banner strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--zentura-primary, #000);
}
.wpi-wheel-event-banner span {
    font-size: 0.78rem;
    color: var(--zentura-gray, #666);
}
.wpi-wheel-event-until {
    font-size: 0.72rem !important;
    color: var(--zentura-gray, #666) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Info Grid */
.wpi-wheel-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
}
.wpi-wheel-info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--zentura-light-gray, #f5f5f5);
    border: 1px solid var(--zentura-border, #e0e0e0);
    border-radius: 10px;
    transition: border-color 0.2s;
}
.wpi-wheel-info-card:hover {
    border-color: rgba(17, 96, 98, 0.25);
}
.wpi-wheel-info-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--zentura-secondary, #fff);
    color: var(--zentura-accent, #116062);
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid var(--zentura-border, #e0e0e0);
}
.wpi-wheel-info-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wpi-wheel-info-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--zentura-gray, #666);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}
.wpi-wheel-info-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--zentura-primary, #000);
    line-height: 1.3;
}
.wpi-wheel-info-value strong {
    color: var(--zentura-accent, #116062);
    font-weight: 800;
}

/* History */
.wpi-wheel-history {
    margin-top: 2rem;
}
.wpi-wheel-history h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--zentura-primary, #000);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--zentura-border, #e0e0e0);
}

/* History Table — matches theme woocommerce-orders-table pattern */
.wpi-wheel-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--zentura-border, #e0e0e0);
    border-radius: 14px;
    overflow: hidden;
    background: var(--zentura-secondary, #fff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
.wpi-wheel-history-table thead {
    background: var(--zentura-light-gray, #f5f5f5);
}
.wpi-wheel-history-table th {
    padding: 0.85rem 1.1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--zentura-gray, #666);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid var(--zentura-border, #e0e0e0);
    white-space: nowrap;
}
.wpi-wheel-history-table td {
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    color: var(--zentura-primary, #000);
    border-bottom: 1px solid var(--zentura-border, #e0e0e0);
    vertical-align: middle;
}
.wpi-wheel-history-table tbody tr {
    transition: background 0.2s ease;
}
.wpi-wheel-history-table tbody tr:hover {
    background: rgba(17, 96, 98, 0.02);
}
.wpi-wheel-history-table tbody tr:last-child td {
    border-bottom: none;
}

/* Coupon code in table */
.wpi-wheel-coupon-code {
    display: inline-block;
    background: var(--zentura-light-gray, #f5f5f5);
    color: var(--zentura-accent, #116062);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    border: 1px solid var(--zentura-border, #e0e0e0);
}

/* Status badges — matches hesabim-order-status pattern */
.wpi-wheel-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
    background: var(--zentura-border, #e0e0e0);
    color: var(--zentura-gray, #666);
}
.wpi-wheel-status.status-won {
    background: #e8f5e9;
    color: #2e7d32;
}
.wpi-wheel-status.status-claimed {
    background: #e3f2fd;
    color: #1565c0;
}
.wpi-wheel-status.status-expired {
    background: #fff3e0;
    color: #e65100;
}

/* Result Modal */
.wpi-wheel-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}
.wpi-wheel-modal {
    background: var(--zentura-secondary, #fff);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 380px;
    width: 90%;
    border: 1px solid var(--zentura-border, #e0e0e0);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: wpiWheelModalIn 0.3s ease-out;
}
@keyframes wpiWheelModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.wpi-wheel-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--zentura-accent, #116062);
}
.wpi-wheel-modal-icon.result-nothing {
    color: var(--zentura-gray, #666);
}
.wpi-wheel-modal-icon.result-retry {
    color: var(--zentura-accent-2, #1abc9c);
}
.wpi-wheel-modal-icon.result-win {
    color: var(--zentura-accent, #116062);
}
.wpi-wheel-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--zentura-primary, #000);
    margin: 0 0 0.5rem;
}
.wpi-wheel-modal-text {
    font-size: 0.9rem;
    color: var(--zentura-gray, #666);
    margin: 0 0 1rem;
    line-height: 1.6;
}
.wpi-wheel-modal-coupon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}
.wpi-wheel-modal-coupon code {
    background: var(--zentura-light-gray, #f5f5f5);
    color: var(--zentura-accent, #116062);
    font-size: 1rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
    letter-spacing: 0.06em;
    border: 1px solid var(--zentura-border, #e0e0e0);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.wpi-wheel-copy-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--zentura-accent, #116062);
    background: var(--zentura-secondary, #fff);
    border: 1px solid var(--zentura-accent, #116062);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wpi-wheel-copy-btn:hover {
    background: rgba(17, 96, 98, 0.06);
}
.wpi-wheel-modal-close {
    display: inline-block;
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--zentura-secondary, #fff);
    background: var(--zentura-primary, #000);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wpi-wheel-modal-close:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Confetti Canvas */
#wpi-wheel-confetti {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100000;
}

/* Responsive — tablet */
@media (max-width: 768px) {
    .wpi-wheel-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .wpi-wheel-stage {
        max-width: 340px;
    }
    .wpi-wheel-hub {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
    .wpi-wheel-spin-btn {
        width: 100%;
        padding: 0.75rem;
    }
    .wpi-wheel-history-table {
        display: block;
        overflow-x: auto;
        border-radius: 12px;
    }
    .wpi-wheel-event-banner {
        flex-wrap: wrap;
    }
    .wpi-wheel-event-until {
        width: 100%;
        margin-top: 2px;
    }
    .wpi-wheel-modal {
        padding: 1.5rem;
    }
}

/* Responsive — phone */
@media (max-width: 400px) {
    .wpi-wheel-stage {
        max-width: 280px;
    }
    .wpi-wheel-hub {
        width: 38px;
        height: 38px;
        font-size: 14px;
        border-width: 2px;
    }
    .wpi-wheel-pointer {
        top: -13px;
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 22px;
    }
    .wpi-wheel-info-grid {
        grid-template-columns: 1fr;
    }
    .wpi-wheel-info-card {
        padding: 10px 12px;
    }
}
