

.toast-notification {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 20px;
    border-radius: 2px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.2s;
    display: none;
    min-width: 280px;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    word-wrap: break-word;
    line-height: 1.5;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    color: #333;
    pointer-events: none;
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    display: block;
}
.toast-notification.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.toast-notification.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.toast-notification.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}
.toast-notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.card-redeem-container {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    background: #ffffff;
    padding: 35px 35px;
    box-sizing: border-box;
}
.card-redeem-header {
    text-align: center;
    margin-bottom: 30px;
}
.card-redeem-title {
    font-size: 32px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 0;
}
.card-redeem-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}
.card-redeem-tools-section {
    max-width: 1200px;
    margin: 0 auto;
}
.card-redeem-tools-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.card-redeem-tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 25px;
}

.card-redeem-tool-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    padding: 20px 18px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    position: relative;
    width: 280px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card-redeem-tool-card:hover {
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.card-redeem-tool-card.active {
    border-color: #2196F3;
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.12);
}
.card-redeem-tool-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2196F3;
    border-radius: 2px;
    font-size: 30px;
    overflow: hidden;
}
.card-redeem-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}
.card-redeem-tool-icon:has(img) {
    background: transparent;
    padding: 0;
}
.card-redeem-tool-card.active .card-redeem-tool-icon {
    background: #1976D2;
}
.card-redeem-tool-card.active .card-redeem-tool-icon:has(img) {
    background: transparent;
}
.card-redeem-tool-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
}
.card-redeem-tool-description {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0;
}
.card-redeem-tool-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #2196F3;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}
.card-redeem-tool-card.active .card-redeem-tool-check {
    display: flex;
}
.card-redeem-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.card-redeem-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}
.card-redeem-empty-text {
    font-size: 15px;
    line-height: 1.6;
}

.card-redeem-redeem-section {
    max-width: 800px;
    margin: 25px auto 0;
    display: none;
}
.card-redeem-redeem-section.active {
    display: block;
}
.card-redeem-redeem-card {
    background: #ffffff;
    border-radius: 2px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card-redeem-redeem-header {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}
.card-redeem-redeem-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2196F3;
    border-radius: 2px;
    font-size: 30px;
    overflow: hidden;
}
.card-redeem-redeem-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}
.card-redeem-redeem-icon:has(img) {
    background: transparent;
    padding: 0;
}
.card-redeem-redeem-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.card-redeem-redeem-subtitle {
    font-size: 13px;
    color: #666;
}
.card-redeem-card-display {
    margin-bottom: 18px;
    padding: 14px;
    background: #f8f8f8;
    border-radius: 2px;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #2196F3;
    text-align: center;
    display: none;
}
.card-redeem-card-display.show {
    display: block;
}
.card-redeem-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #2196F3;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.card-redeem-card-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    word-break: break-all;
    padding: 10px;
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #e5e5e5;
    margin-bottom: 10px;
}
.card-redeem-card-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.card-redeem-card-copy-btn:hover {
    background: #1976D2;
    box-shadow: none;
}
.card-redeem-card-copy-btn.copied {
    background: #4CAF50;
}
.card-redeem-submit-btn {
    width: 100%;
    padding: 10px 14px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
    box-shadow: none;
}
.card-redeem-submit-btn:hover {
    background: #1976D2;
    box-shadow: none;
}
.card-redeem-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #e5e5e5;
}
.card-redeem-result {
    margin-top: 18px;
    padding: 14px;
    border-radius: 2px;
    display: none;
    border: 1px solid;
}
.card-redeem-result.show {
    display: block;
}
.card-redeem-result.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.card-redeem-result.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.card-redeem-result.info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}
.card-redeem-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}
.card-redeem-result-content {
    font-size: 13px;
    line-height: 1.6;
}
.card-redeem-result-data {
    margin-top: 12px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    color: #333;
    border: 1px solid #e5e5e5;
}
.card-redeem-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    color: #666;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}
.card-redeem-back-btn:hover {
    background: #f0f7ff;
    border-color: #2196F3;
    color: #2196F3;
}

@media (max-width: 1024px) {
    .card-redeem-container {
        padding: 30px 30px;
    }
}
@media (max-width: 768px) {
    .card-redeem-container {
        padding: 18px 18px;
    }
    .card-redeem-header {
        margin-bottom: 22px;
    }
    .card-redeem-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .card-redeem-description {
        font-size: 13px;
        line-height: 1.6;
    }
    .card-redeem-tools-title {
        font-size: 14px;
        margin-bottom: 18px;
    }
    .card-redeem-tools-grid {
        gap: 10px;
    }
    .card-redeem-tool-card {
        width: 100%;
        max-width: 420px;
        padding: 18px 14px;
    }
    .card-redeem-redeem-card {
        padding: 18px 14px;
    }
}
