﻿body {
    background: #f7f9fc;
}

.promo-detail-hero {
    background: linear-gradient(135deg, #0b2b6b 0%, #1a4a8a 100%);
    color: #fff;
    padding: 90px 0 50px;
}

    .promo-detail-hero .hero-title {
        font-size: 36px;
        font-weight: 800;
        letter-spacing: .5px;
        margin: 0 0 12px;
        text-align: center;
    }

    .promo-detail-hero .hero-sub {
        opacity: .92;
        margin: 0;
        text-align: center;
        font-size: 16px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

.promo-detail-section {
    padding: 30px 0 50px;
}

.promo-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.promo-info-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.promo-header-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.promo-tld {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.promo-registrar {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.promo-price-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.promo-price-large {
    font-size: 36px;
    font-weight: 700;
    color: #0b2b6b;
}

.price-currency {
    font-size: 18px;
    color: #666;
    margin-left: 5px;
}

.promo-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.promo-description-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

.description-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.promo-url-section {
    margin-bottom: 30px;
}

.url-link {
    color: #0b2b6b;
    text-decoration: none;
    font-size: 15px;
    word-break: break-all;
}

    .url-link:hover {
        text-decoration: underline;
    }

.promo-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, #0b2b6b, #1a4a8a);
    color: white;
}

    .primary-btn:hover {
        background: linear-gradient(135deg, #1a4a8a, #2a5a9a);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(11, 43, 107, 0.4);
    }

.secondary-btn {
    background: white;
    color: #0b2b6b;
    border: 1px solid #0b2b6b;
}

    .secondary-btn:hover {
        background: #e6f2ff;
    }

/* Promo Code History Section */
.promo-code-history-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.history-table-section {
    margin-top: 25px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

    .history-table thead {
        background: #f8f9fa;
    }

    .history-table th {
        padding: 15px;
        text-align: left;
        font-weight: 600;
        color: #333;
        font-size: 14px;
        border-bottom: 2px solid #e0e0e0;
    }

    .history-table td {
        padding: 18px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #666;
        font-size: 14px;
    }

    .history-table tbody tr:hover {
        background: #f8f9fa;
    }


.pagination-section {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

    .empty-state i {
        font-size: 48px;
        margin-bottom: 20px;
        color: #ddd;
    }

    .empty-state p {
        font-size: 16px;
        margin: 0;
    }

@media (max-width: 768px) {
    .promo-details-grid {
        grid-template-columns: 1fr;
    }

    .promo-actions {
        flex-direction: column;
    }

    .history-table {
        font-size: 12px;
    }

        .history-table th,
        .history-table td {
            padding: 10px 8px;
        }

    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
