/* CD Keys Page Styles */
:root {
    --gold: #FFB700;
    --dark-bg: #1A222E;
    --card-bg: rgba(26, 34, 46, 0.8);
    --text-color: rgba(255, 255, 255, 0.9);
    --error-color: #ff4d4d;
    --success-color: #00cc66;
    --border-color: rgba(255, 183, 0, 0.2);
    --input-bg: rgba(0, 0, 0, 0.2);
}

.cdkeys-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.cdkeys-content {
    max-width: 800px;
    margin: 0 auto;
}

.redeem-card,
.history-card {
    background: linear-gradient(145deg, rgba(255, 183, 0, 0.05), rgba(255, 183, 0, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.alert-success {
    background: rgba(0, 204, 102, 0.1);
    border: 1px solid rgba(0, 204, 102, 0.2);
    color: var(--success-color);
}

.alert-error {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: var(--error-color);
}

.error-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* Form Styles */
.redeem-form {
    margin-top: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    min-width: 200px;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(255, 183, 0, 0.2);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(180deg, #FFB700 0%, #FF9500 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.2);
}

.submit-button:hover::before {
    opacity: 1;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.data-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--gold);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.data-table tr:last-child {
    border-bottom: none;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.reward-cash {
    color: #FFB700;
    font-weight: 500;
}

.reward-gp {
    color: #4CAF50;
    font-weight: 500;
}

.empty-message {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 2rem 0;
}

/* Pagination */
.pagination-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
        margin-top: 0.5rem;
    }

    .redeem-card,
    .history-card {
        padding: 1.5rem;
    }
}



.disclaimer-card {
    background: linear-gradient(145deg, rgba(255, 183, 0, 0.05), rgba(255, 183, 0, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.disclaimer-header i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.disclaimer-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.disclaimer-content {
    color: var(--text-color);
}

.disclaimer-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.disclaimer-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.agreement-checkbox input {
    margin-right: 0.75rem;
}

.agreement-checkbox label {
    font-weight: 500;
    color: var(--gold);
}

.guide-card {
    background: linear-gradient(145deg, rgba(255, 183, 0, 0.05), rgba(255, 183, 0, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.guide-content {
    margin-top: 1.5rem;
}

.guide-step {
    display: flex;
    margin-bottom: 1.5rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--dark-bg);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.guide-notes {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.guide-notes h3 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.guide-notes ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.guide-notes li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.sellers-card {
    background: linear-gradient(145deg, rgba(255, 183, 0, 0.05), rgba(255, 183, 0, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sellers-intro {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sellers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.seller-item {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seller-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.seller-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 183, 0, 0.1);
}

.seller-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold);
    background: var(--dark-bg);
}

.seller-info {
    flex: 1;
}

.seller-name {
    color: var(--gold);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.seller-contact p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.seller-contact span {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

.seller-desc {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

.sellers-warning {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.sellers-warning i {
    color: var(--error-color);
    font-size: 1.2rem;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
}

.sellers-warning p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .sellers-list {
        grid-template-columns: 1fr;
    }
}
