/**
 * ActStorm Loyalty - Frontend Styles
 * Black & White Theme
 */

/* Variables */
:root {
    --actstorm-primary: #000000;
    --actstorm-primary-dark: #1a1a1a;
    --actstorm-success: #000000;
    --actstorm-warning: #666666;
    --actstorm-danger: #333333;
    --actstorm-gray-50: #fafafa;
    --actstorm-gray-100: #f5f5f5;
    --actstorm-gray-200: #e5e5e5;
    --actstorm-gray-300: #d4d4d4;
    --actstorm-gray-500: #737373;
    --actstorm-gray-700: #404040;
    --actstorm-gray-900: #171717;
    --actstorm-radius: 8px;
    --actstorm-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    --actstorm-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Login Required Message */
.actstorm-login-required {
    background: linear-gradient(135deg, var(--actstorm-gray-100), var(--actstorm-gray-50));
    border-radius: var(--actstorm-radius);
    padding: 2rem;
    text-align: center;
    color: var(--actstorm-gray-700);
}

.actstorm-login-required .button {
    margin-top: 1rem;
}

/* Points Balance */
.actstorm-points-balance {
    background: linear-gradient(135deg, var(--actstorm-primary), var(--actstorm-primary-dark));
    color: white;
    border-radius: var(--actstorm-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--actstorm-shadow-lg);
}

.actstorm-balance-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.actstorm-balance-label {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    display: block;
}

.actstorm-balance-value {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

/* History Table */
.actstorm-history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--actstorm-radius);
    overflow: hidden;
    box-shadow: var(--actstorm-shadow);
}

.actstorm-history-table th,
.actstorm-history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--actstorm-gray-200);
}

.actstorm-history-table th {
    background: var(--actstorm-gray-50);
    font-weight: 600;
    color: var(--actstorm-gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.actstorm-history-table tbody tr:hover {
    background: var(--actstorm-gray-50);
}

.actstorm-history-table .actstorm-points-cell {
    font-weight: 600;
}

.actstorm-history-table .actstorm-earn .actstorm-points-cell {
    color: var(--actstorm-success);
}

.actstorm-history-table .actstorm-redeem .actstorm-points-cell {
    color: var(--actstorm-danger);
}

.actstorm-positive {
    color: #000000 !important;
    font-weight: 600;
}

.actstorm-negative {
    color: #737373 !important;
    font-weight: 600;
}

/* Rewards Grid */
.actstorm-rewards-catalog {
    margin-top: 1.5rem;
}

.actstorm-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.actstorm-reward-card {
    background: white;
    border-radius: var(--actstorm-radius);
    padding: 1.5rem;
    box-shadow: var(--actstorm-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.actstorm-reward-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--actstorm-shadow-lg);
}

.actstorm-reward-card.can-redeem {
    border-color: var(--actstorm-primary);
}

.actstorm-reward-card.cannot-redeem {
    opacity: 0.7;
}

.actstorm-reward-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.actstorm-reward-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--actstorm-gray-900);
}

.actstorm-reward-desc {
    color: var(--actstorm-gray-500);
    font-size: 0.875rem;
    margin: 0 0 1rem;
}

.actstorm-reward-cost {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--actstorm-primary);
    margin-bottom: 1rem;
}

.actstorm-redeem-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--actstorm-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    display: block;
    text-decoration: none;
}

.actstorm-redeem-btn:hover:not(:disabled) {
    background: var(--actstorm-primary-dark);
    color: white;
}

.actstorm-redeem-btn:disabled {
    background: var(--actstorm-gray-300);
    cursor: not-allowed;
}

/* Tier Section */
.actstorm-tier-section {
    background: white;
    border-radius: var(--actstorm-radius);
    padding: 1.5rem;
    box-shadow: var(--actstorm-shadow);
}

.actstorm-current-tier {
    border-left: 4px solid;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.actstorm-current-tier h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.actstorm-tier-benefits {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.actstorm-tier-benefits li {
    margin-bottom: 0.5rem;
    color: var(--actstorm-gray-700);
}

.actstorm-tier-progress {
    background: var(--actstorm-gray-50);
    border-radius: 8px;
    padding: 1rem;
}

.actstorm-progress-bar {
    height: 12px;
    background: var(--actstorm-gray-200);
    border-radius: 6px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.actstorm-progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.actstorm-progress-percent {
    font-weight: 600;
    color: var(--actstorm-gray-700);
}

.actstorm-max-tier {
    text-align: center;
    font-size: 1.25rem;
    color: var(--actstorm-success);
    margin: 0;
}

/* Achievements */
.actstorm-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.actstorm-achievement-card {
    background: white;
    border-radius: var(--actstorm-radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--actstorm-shadow);
    transition: transform 0.2s;
}

.actstorm-achievement-card:hover {
    transform: scale(1.02);
}

/* Completed achievements - icon only */
.actstorm-achievement-card.completed {
    background: transparent;
    box-shadow: none;
    padding: 0.5rem;
}

.actstorm-achievement-card.completed .actstorm-achievement-badge {
    margin-bottom: 0;
    width: 56px;
    height: 56px;
}

.actstorm-achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.actstorm-achievement-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--actstorm-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.actstorm-achievement-badge img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

/* Badge icons */
.actstorm-badge-icon {
    font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 1;
}

.actstorm-badge-icon::before {
    display: block;
}

.actstorm-badge-completed .actstorm-badge-icon {
    color: var(--actstorm-primary);
}

.actstorm-badge-locked .actstorm-badge-icon {
    color: var(--actstorm-gray-400);
}

.actstorm-achievement-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.actstorm-achievement-card p {
    color: var(--actstorm-gray-500);
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
}

.actstorm-achievement-reward {
    background: var(--actstorm-success);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
}

/* Referral Section */
.actstorm-referral-section {
    background: white;
    border-radius: var(--actstorm-radius);
    padding: 2rem;
    box-shadow: var(--actstorm-shadow);
}

.actstorm-referral-info h3 {
    margin: 0 0 0.5rem;
}

.actstorm-referral-link-box {
    margin: 1.5rem 0;
}

.actstorm-referral-link-wrap {
    display: flex;
    gap: 0.5rem;
}

.actstorm-referral-link-wrap input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--actstorm-gray-200);
    border-radius: 8px;
    font-size: 0.9rem;
}

.actstorm-copy-btn {
    padding: 0.75rem 1.5rem;
    background: var(--actstorm-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.actstorm-copy-btn:hover {
    background: var(--actstorm-primary-dark);
}

.actstorm-referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.actstorm-stat {
    text-align: center;
    padding: 1rem;
    background: var(--actstorm-gray-50);
    border-radius: 8px;
}

.actstorm-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--actstorm-primary);
}

.actstorm-stat-label {
    font-size: 0.8rem;
    color: var(--actstorm-gray-500);
}

/* Dashboard Tabs */
.actstorm-dashboard-tabs,
.actstorm-account-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--actstorm-gray-200);
    padding-bottom: 0;
}

.actstorm-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--actstorm-gray-500);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 4px 4px 0 0;
}

.actstorm-tab:hover {
    background: #000000;
    color: #ffffff;
}

.actstorm-tab.active {
    background: #000000;
    color: #ffffff;
}

.actstorm-tab.active::after {
    display: none;
}

.actstorm-tab-content,
.actstorm-tab-panel {
    display: none;
}

.actstorm-tab-content.active,
.actstorm-tab-panel.active {
    display: block;
}

/* Ways to Earn */
.actstorm-ways-to-earn {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.actstorm-earn-card {
    background: white;
    border-radius: var(--actstorm-radius);
    padding: 1.5rem;
    box-shadow: var(--actstorm-shadow);
    text-align: center;
}

.actstorm-earn-icon {
    font-size: 2rem;
    color: var(--actstorm-primary);
    margin-bottom: 1rem;
}

.actstorm-earn-card h4 {
    margin: 0 0 0.5rem;
    color: var(--actstorm-gray-900);
}

.actstorm-earn-card p {
    margin: 0;
    color: var(--actstorm-gray-500);
    font-size: 0.875rem;
}

/* Social Share/Follow */
.actstorm-social-share,
.actstorm-social-follow {
    margin: 1rem 0;
}

.actstorm-share-label,
.actstorm-follow-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.actstorm-share-buttons,
.actstorm-follow-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.actstorm-share-btn,
.actstorm-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s, transform 0.2s;
}

.actstorm-share-btn:hover,
.actstorm-follow-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: white;
}

.actstorm-share-points,
.actstorm-follow-points {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
}

.actstorm-follow-btn.followed {
    opacity: 0.6;
}

/* Product Points */
.actstorm-product-points {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--actstorm-gray-50), var(--actstorm-gray-100));
    border-radius: 8px;
    border-left: 3px solid var(--actstorm-primary);
}

.actstorm-points-earn {
    color: var(--actstorm-gray-700);
    font-size: 0.9rem;
}

.actstorm-loop-points {
    margin-top: 0.5rem;
}

.actstorm-loop-points span {
    background: var(--actstorm-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
}

/* Checkout/Cart Points */
.actstorm-checkout-points td {
    padding: 1rem 0;
}

.actstorm-points-redeem-box,
.actstorm-cart-points-box {
    background: var(--actstorm-gray-50);
    border-radius: 8px;
    padding: 1rem;
}

.actstorm-points-available {
    margin: 0 0 1rem;
}

.actstorm-points-input-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.actstorm-points-input-wrap input {
    width: 120px;
}

.actstorm-apply-points {
    padding: 0.5rem 1rem;
    background: var(--actstorm-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.actstorm-points-applied {
    color: var(--actstorm-success);
    font-weight: 500;
}

.actstorm-remove-points {
    color: var(--actstorm-danger);
    margin-left: 0.5rem;
}

.actstorm-earn-highlight {
    color: var(--actstorm-success);
}

/* Thank You Page */
.actstorm-thankyou-points {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    color: white;
    padding: 1.5rem;
    border-radius: var(--actstorm-radius);
    margin: 1.5rem 0;
}

.actstorm-thankyou-points h3 {
    margin: 0 0 0.5rem;
}

.actstorm-thankyou-points p {
    margin: 0;
    opacity: 0.9;
}

/* Dashboard Widget */
.actstorm-dashboard-widget {
    background: linear-gradient(135deg, var(--actstorm-primary), var(--actstorm-primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: var(--actstorm-radius);
    margin: 1.5rem 0;
}

.actstorm-dashboard-widget h3 {
    margin: 0 0 1rem;
    color: #ffffff;
}

.actstorm-widget-content {
    text-align: center;
}

.actstorm-widget-balance {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.actstorm-widget-tier {
    display: block;
    margin-bottom: 1rem;
}

.actstorm-dashboard-widget .button {
    background: white;
    color: var(--actstorm-primary);
}

/* Account Page Layout */
.actstorm-loyalty-account {
    max-width: 900px;
}

.actstorm-account-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.actstorm-balance-card {
    background: linear-gradient(135deg, var(--actstorm-primary), var(--actstorm-primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: var(--actstorm-radius);
}

.actstorm-balance-main {
    margin-bottom: 0.75rem;
}

.actstorm-tier-card {
    background: white;
    border-left: 4px solid;
    padding: 1.5rem;
    border-radius: var(--actstorm-radius);
    box-shadow: var(--actstorm-shadow);
}

.actstorm-tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.actstorm-progress-bar-mini {
    height: 8px;
    background: var(--actstorm-gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.actstorm-progress-fill-mini {
    height: 100%;
    border-radius: 4px;
}

.actstorm-max-tier-badge {
    background: var(--actstorm-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.actstorm-account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.actstorm-stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--actstorm-radius);
    box-shadow: var(--actstorm-shadow);
}

.actstorm-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--actstorm-gray-900);
}

/* Referral Box in Account */
.actstorm-referral-box {
    background: white;
    border-radius: var(--actstorm-radius);
    padding: 1.5rem;
    box-shadow: var(--actstorm-shadow);
}

.actstorm-referral-box h3 {
    margin-top: 0;
}

.actstorm-referral-link-wrapper {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.actstorm-ref-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--actstorm-gray-200);
    border-radius: 8px;
}

.actstorm-referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.actstorm-ref-stat {
    text-align: center;
    padding: 1rem;
    background: var(--actstorm-gray-50);
    border-radius: 8px;
}

.actstorm-ref-stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--actstorm-primary);
}

.actstorm-ref-stat .label {
    font-size: 0.8rem;
    color: var(--actstorm-gray-500);
}

/* Widget */
.actstorm-widget-points {
    text-align: center;
}

.actstorm-widget-points .points-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--actstorm-primary);
}

.actstorm-widget-points .points-label {
    display: block;
    color: var(--actstorm-gray-500);
}

.actstorm-widget-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--actstorm-primary);
    text-decoration: none;
}

/* No Data */
.actstorm-no-data {
    text-align: center;
    color: var(--actstorm-gray-500);
    padding: 2rem;
    background: var(--actstorm-gray-50);
    border-radius: var(--actstorm-radius);
}

/* Responsive */
@media (max-width: 768px) {
    .actstorm-account-header {
        grid-template-columns: 1fr;
    }

    .actstorm-account-stats,
    .actstorm-referral-stats,
    .actstorm-referral-stats-grid {
        grid-template-columns: 1fr;
    }

    .actstorm-dashboard-tabs,
    .actstorm-account-tabs {
        flex-wrap: wrap;
    }

    .actstorm-tab {
        flex: 1 1 auto;
        text-align: center;
    }

    .actstorm-referral-link-wrap,
    .actstorm-referral-link-wrapper {
        flex-direction: column;
    }

    .actstorm-rewards-grid {
        grid-template-columns: 1fr;
    }

    .actstorm-join-benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Join Page */
.actstorm-join-page {
    max-width: 800px;
    margin: 0 auto;
}

.actstorm-join-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--actstorm-primary), var(--actstorm-primary-dark));
    color: white;
    border-radius: var(--actstorm-radius);
    margin-bottom: 2rem;
}

.actstorm-join-hero h2 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.actstorm-join-hero p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.actstorm-join-bonus {
    margin: 1.5rem 0;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: inline-block;
}

.actstorm-join-bonus .bonus-amount {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.actstorm-join-bonus .bonus-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.actstorm-join-btn-large {
    padding: 1rem 3rem !important;
    font-size: 1.1rem !important;
    background: white !important;
    color: var(--actstorm-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.actstorm-join-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.actstorm-join-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.actstorm-benefit {
    background: white;
    border-radius: var(--actstorm-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--actstorm-shadow);
    transition: transform 0.2s;
}

.actstorm-benefit:hover {
    transform: translateY(-4px);
}

.actstorm-benefit .benefit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.actstorm-benefit h4 {
    margin: 0 0 0.5rem;
    color: var(--actstorm-gray-900);
}

.actstorm-benefit p {
    margin: 0;
    color: var(--actstorm-gray-500);
    font-size: 0.9rem;
}

/* Join Section (shortcode) */
.actstorm-join-section {
    background: white;
    border-radius: var(--actstorm-radius);
    padding: 2rem;
    box-shadow: var(--actstorm-shadow);
    text-align: center;
}

.actstorm-join-benefits {
    text-align: left;
    margin-bottom: 1.5rem;
}

.actstorm-join-benefits h3 {
    margin: 0 0 1rem;
}

.actstorm-join-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.actstorm-join-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.actstorm-join-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--actstorm-success);
    font-weight: bold;
}

.actstorm-member-badge {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    color: white;
    padding: 1.5rem;
    border-radius: var(--actstorm-radius);
    text-align: center;
}

.actstorm-member-badge .actstorm-member-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    line-height: 32px;
    margin-right: 0.5rem;
}

.actstorm-member-badge a {
    display: block;
    margin-top: 0.75rem;
    color: white;
    opacity: 0.9;
}

/* Join widget */
.actstorm-join-widget {
    background: linear-gradient(135deg, var(--actstorm-gray-700), var(--actstorm-gray-900));
}

.actstorm-join-checkbox {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--actstorm-gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--actstorm-primary);
}

.actstorm-join-text {
    color: var(--actstorm-gray-700);
}

/* Modal */
.actstorm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.actstorm-modal {
    background: #ffffff;
    border-radius: var(--actstorm-radius);
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: actstorm-modal-in 0.3s ease;
}

@keyframes actstorm-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.actstorm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--actstorm-gray-200);
}

.actstorm-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--actstorm-gray-900);
}

.actstorm-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--actstorm-gray-500);
    padding: 0;
    line-height: 1;
}

.actstorm-modal-close:hover {
    color: var(--actstorm-gray-900);
}

.actstorm-modal-body {
    padding: 1.5rem;
}

.actstorm-modal-body p {
    margin: 0 0 1rem;
    color: var(--actstorm-gray-700);
}

.actstorm-modal-body p:last-child {
    margin-bottom: 0;
}

.actstorm-coupon-display {
    background: var(--actstorm-gray-100);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.actstorm-coupon-label {
    display: block;
    font-size: 0.85rem;
    color: var(--actstorm-gray-500);
    margin-bottom: 0.5rem;
}

.actstorm-coupon-code {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 2px dashed var(--actstorm-gray-300);
    margin-bottom: 0.75rem;
}

.actstorm-copy-coupon {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.actstorm-copy-coupon:hover {
    background: #333333;
}

.actstorm-coupon-note {
    font-size: 0.85rem !important;
    color: var(--actstorm-gray-500) !important;
    margin-top: 1rem !important;
}

.actstorm-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--actstorm-gray-200);
    text-align: right;
}

.actstorm-modal-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.actstorm-modal-btn:hover {
    background: #333333;
}

.actstorm-modal-success .actstorm-modal-header {
    background: #000000;
    color: #ffffff;
    border-radius: var(--actstorm-radius) var(--actstorm-radius) 0 0;
}

.actstorm-modal-success .actstorm-modal-header h3 {
    color: #ffffff;
}

.actstorm-modal-success .actstorm-modal-close {
    color: rgba(255, 255, 255, 0.7);
}

.actstorm-modal-success .actstorm-modal-close:hover {
    color: #ffffff;
}