/**
 * ConvMaster - Credit Card Validator Styles
 * @package ConvMaster
 * @version 1.0.0
 */

/* ========================================
   TOOL PAGE LAYOUT
   ======================================== */
.tool-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-header__icon {
    font-size: 2.5rem;
}

.tool-header__icon .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg, 12px);
    background: var(--bg-tertiary, #1e293b);
}

.tool-header__icon .icon--validator {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
}

.tool-header__text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary, #f1f5f9);
}

.tool-header__text p {
    margin: 0;
    color: var(--text-secondary, #94a3b8);
}

/* ========================================
   CURRENT DATE
   ======================================== */
.ccv-current-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-md, 8px);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.5rem;
}

.ccv-current-date__icon {
    font-size: 1.25rem;
}

.ccv-current-date__text {
    font-size: 1rem;
    color: var(--text-primary, #f1f5f9);
    font-weight: 500;
}

/* ========================================
   TABS
   ======================================== */
.ccv-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ccv-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--bg-tertiary, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-md, 8px);
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    transition: all 0.2s;
}

.ccv-tab:hover {
    background: var(--bg-card, #1e293b);
    color: var(--text-primary, #f1f5f9);
    border-color: var(--primary, #3b82f6);
}

.ccv-tab--active {
    background: var(--primary, #3b82f6);
    border-color: var(--primary, #3b82f6);
    color: white;
}

.ccv-tab__icon {
    font-size: 1.125rem;
}

.ccv-tab-content {
    display: none;
}

.ccv-tab-content--active {
    display: block;
}

/* ========================================
   CALCULATOR WIDGET
   ======================================== */
.ccv-calculator {
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    margin-bottom: 2rem;
}

.ccv-calculator__section {
    padding: 1.5rem;
}

.ccv-calculator__section--input {
    background: var(--bg-tertiary, #0f172a);
    border-bottom: 1px solid var(--border-color, #334155);
}

.ccv-calculator__section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ccv-calculator__step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary, #3b82f6);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.ccv-calculator__section-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin: 0;
}

/* ========================================
   FORM
   ======================================== */
.ccv-form {
    max-width: 100%;
}

.ccv-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.ccv-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ccv-form__group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
}

.ccv-form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-input, #0f172a);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary, #f1f5f9);
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}

.ccv-form__input::-webkit-outer-spin-button,
.ccv-form__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ccv-form__input::placeholder {
    color: var(--text-muted, #64748b);
}

.ccv-form__input:focus {
    outline: none;
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ccv-form__input--large {
    font-size: 1.5rem;
    padding: 1rem 1.25rem;
    letter-spacing: 0.1em;
    font-family: 'JetBrains Mono', monospace;
}

.ccv-form__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ccv-form__input-wrapper .ccv-form__input {
    padding-right: 3rem;
}

.ccv-form__clear {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

.ccv-form__input-wrapper:hover .ccv-form__clear,
.ccv-form__input:focus ~ .ccv-form__clear {
    opacity: 1;
}

.ccv-form__clear:hover {
    color: var(--text-primary, #f1f5f9);
}

.ccv-form__textarea {
    width: 100%;
    padding: 1rem;
    font-size: 0.9375rem;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-input, #0f172a);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary, #f1f5f9);
    resize: vertical;
    min-height: 150px;
}

.ccv-form__textarea::placeholder {
    color: var(--text-muted, #64748b);
}

.ccv-form__textarea:focus {
    outline: none;
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ccv-form__hint {
    font-size: 0.8125rem;
    color: var(--text-muted, #64748b);
    margin-top: 0.5rem;
}

.ccv-form__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn--primary {
    background: var(--primary, #3b82f6);
    color: white;
}

.btn--primary:hover {
    background: var(--primary-hover, #2563eb);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-color, #334155);
    color: var(--text-primary, #f1f5f9);
}

.btn--outline:hover {
    background: var(--bg-tertiary, #1e293b);
    border-color: var(--primary, #3b82f6);
}

.btn--success {
    background: var(--success, #10b981);
    color: white;
}

.btn--danger {
    background: var(--danger, #ef4444);
    color: white;
}

/* ========================================
   RESULT SECTION
   ======================================== */
.ccv-result {
    display: grid;
    gap: 1.5rem;
}

.ccv-result__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ccv-result__card-visual {
    width: 100%;
    max-width: 400px;
}

/* Card Preview */
.ccv-card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.ccv-card-preview__bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2), transparent 50%);
    pointer-events: none;
}

.ccv-card-preview__chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700, #c0a000);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    position: relative;
}

.ccv-card-preview__chip::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    border-radius: 4px;
}

.ccv-card-preview__brand {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
}

.ccv-card-preview__number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.375rem;
    letter-spacing: 0.15em;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ccv-card-preview__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Card Preview States */
.ccv-card-preview--valid {
    background: linear-gradient(135deg, #065f46, #0f172a);
}

.ccv-card-preview--invalid {
    background: linear-gradient(135deg, #7f1d1d, #0f172a);
}

.ccv-card-preview--visa {
    background: linear-gradient(135deg, #1a1f71, #0f172a);
}

.ccv-card-preview--mastercard {
    background: linear-gradient(135deg, #cc0000, #ff9900, #0f172a);
}

.ccv-card-preview--amex {
    background: linear-gradient(135deg, #006fcf, #0f172a);
}

/* Status Badge */
.ccv-result__status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
}

.ccv-result__status--valid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.ccv-result__status--invalid {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.ccv-result__status-icon {
    font-size: 1.5rem;
}

.ccv-result__status-text {
    font-size: 1.125rem;
}

/* Details Grid */
.ccv-result__details {
    width: 100%;
}

.ccv-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ccv-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--bg-tertiary, #0f172a);
    border-radius: var(--radius-md, 8px);
}

.ccv-detail-item__label {
    font-size: 0.8125rem;
    color: var(--text-muted, #64748b);
}

.ccv-detail-item__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

/* Luhn Breakdown */
.ccv-luhn-breakdown {
    background: var(--bg-tertiary, #0f172a);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.ccv-luhn-breakdown__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
}

.ccv-luhn-breakdown__header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin: 0;
    flex: 1;
}

.ccv-luhn-breakdown__icon {
    font-size: 1.25rem;
}

.ccv-luhn-breakdown__toggle {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.ccv-luhn-breakdown__toggle.open {
    transform: rotate(180deg);
}

.ccv-luhn-breakdown__content {
    padding: 0 1rem 1rem;
}

.ccv-luhn-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ccv-luhn-step {
    padding: 0.75rem;
    background: var(--bg-card, #1e293b);
    border-radius: var(--radius-sm, 6px);
}

.ccv-luhn-step__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.5rem;
}

.ccv-luhn-step__value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-primary, #f1f5f9);
    word-break: break-all;
}

.ccv-luhn-step__value--highlight {
    color: var(--primary, #3b82f6);
}

/* ========================================
   BULK VALIDATION
   ======================================== */
.ccv-bulk-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ccv-bulk-summary__item {
    flex: 1;
    min-width: 100px;
    padding: 1rem;
    border-radius: var(--radius-md, 8px);
    text-align: center;
}

.ccv-bulk-summary__item--total {
    background: var(--bg-tertiary, #0f172a);
}

.ccv-bulk-summary__item--valid {
    background: rgba(16, 185, 129, 0.15);
}

.ccv-bulk-summary__item--invalid {
    background: rgba(239, 68, 68, 0.15);
}

.ccv-bulk-summary__count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
}

.ccv-bulk-summary__item--valid .ccv-bulk-summary__count {
    color: #10b981;
}

.ccv-bulk-summary__item--invalid .ccv-bulk-summary__count {
    color: #ef4444;
}

.ccv-bulk-summary__label {
    font-size: 0.8125rem;
    color: var(--text-muted, #64748b);
}

.ccv-bulk-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.ccv-bulk-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary, #0f172a);
    border-radius: var(--radius-md, 8px);
}

.ccv-bulk-result-item__status {
    font-size: 1.25rem;
}

.ccv-bulk-result-item__number {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9375rem;
    color: var(--text-primary, #f1f5f9);
}

.ccv-bulk-result-item__brand {
    font-size: 0.8125rem;
    color: var(--text-secondary, #94a3b8);
    padding: 0.25rem 0.5rem;
    background: var(--bg-card, #1e293b);
    border-radius: var(--radius-sm, 4px);
}

/* ========================================
   BRAND SELECTOR
   ======================================== */
.ccv-brand-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ccv-brand-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-input, #0f172a);
    border: 2px solid var(--border-color, #334155);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: all 0.2s;
}

.ccv-brand-btn:hover {
    border-color: var(--primary, #3b82f6);
}

.ccv-brand-btn--active {
    border-color: var(--primary, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
}

.ccv-brand-btn__logo {
    font-size: 1.5rem;
}

.ccv-brand-btn__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

/* ========================================
   GENERATED LIST
   ======================================== */
.ccv-generated-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ccv-generated-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary, #0f172a);
    border-radius: var(--radius-md, 8px);
}

.ccv-generated-item__number {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-primary, #f1f5f9);
    letter-spacing: 0.05em;
}

.ccv-generated-item__copy {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.ccv-generated-item__copy:hover {
    color: var(--primary, #3b82f6);
}

.ccv-generated-item__copy--success {
    color: #10b981 !important;
}

/* ========================================
   DISCLAIMER & NOTICES
   ======================================== */
.ccv-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md, 8px);
    margin-top: 1rem;
}

.ccv-disclaimer__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ccv-disclaimer p {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
    line-height: 1.5;
}

.ccv-privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md, 8px);
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #10b981;
}

.ccv-privacy-notice__icon {
    font-size: 1rem;
}

/* ========================================
   INLINE MESSAGES
   ======================================== */
.ccv-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.ccv-message--error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.ccv-message--success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.ccv-message--info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* ========================================
   SEO CONTENT
   ======================================== */
.tool-content {
    margin-top: 3rem;
}

.tool-section {
    margin-bottom: 2.5rem;
}

.tool-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin: 0 0 1rem;
}

.tool-section p {
    color: var(--text-secondary, #94a3b8);
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-lg, 12px);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    background: var(--bg-tertiary, #0f172a);
    border-radius: var(--radius-md, 8px);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
    line-height: 1.6;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.step-card {
    padding: 1.5rem;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-lg, 12px);
    position: relative;
}

.step-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary, #3b82f6);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin: 0 0 0.5rem;
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
    line-height: 1.6;
}

/* Brands Reference */
.ccv-brands-reference {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ccv-brand-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-md, 8px);
}

.ccv-brand-info__logo {
    font-size: 2rem;
}

.ccv-brand-info__details {
    flex: 1;
}

.ccv-brand-info__name {
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 0.25rem;
}

.ccv-brand-info__prefix {
    font-size: 0.8125rem;
    color: var(--text-muted, #64748b);
    font-family: 'JetBrains Mono', monospace;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-muted, #64748b);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
}

/* ========================================
   HIDDEN ATTRIBUTE
   ======================================== */
[hidden] {
    display: none !important;
}

/* ========================================
   THEME VARIABLES - DARK BY DEFAULT
   ======================================== */
:root,
[data-theme="dark"] {
    --bg-card: #1e293b;
    --bg-tertiary: #0f172a;
    --bg-input: #0f172a;
    --border-color: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ========================================
   LIGHT THEME OVERRIDE
   ======================================== */
[data-theme="light"] {
    --bg-card: #ffffff;
    --bg-tertiary: #f8fafc;
    --bg-input: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
}

[data-theme="light"] .ccv-card-preview {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

[data-theme="light"] .ccv-card-preview--valid {
    background: linear-gradient(135deg, #10b981, #047857);
}

[data-theme="light"] .ccv-card-preview--invalid {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .tool-page {
        padding: 1rem;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ccv-tabs {
        justify-content: center;
    }
    
    .ccv-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .ccv-form__input--large {
        font-size: 1.125rem;
        padding: 0.875rem 1rem;
    }
    
    .ccv-card-preview__number {
        font-size: 1rem;
    }
    
    .ccv-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .ccv-brand-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ccv-bulk-summary {
        flex-direction: column;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ccv-form__actions {
        flex-direction: column;
    }
    
    .ccv-form__actions .btn {
        width: 100%;
    }
    
    .ccv-brand-selector {
        grid-template-columns: 1fr 1fr;
    }
}
