/**
 * UTM Builder Tool - Specific Styles
 * Extends the main output.css with tool-specific components
 */

/* ===============================
   Tool Section Layout
   =============================== */
.tool-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Override global .card max-width (20rem) from pricing cards */
.tool-container .card,
.param-guide.card,
.benefit-card.card,
.faq-container .card {
    max-width: 100%;
}

.cta-section .card {
    max-width: 100%;
}

/* ===============================
   Input Fields
   =============================== */
.field-group {
    position: relative;
    margin-bottom: 1rem;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--app-text-primary);
    margin-bottom: 0.4rem;
}

.field-label .field-hint {
    font-weight: 400;
    color: var(--app-text-secondary);
    font-size: 0.75rem;
}

/* field-check indicators removed — labels are self-descriptive */

.utm-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    background: var(--card-bg-secondary);
    color: var(--app-text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.utm-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 111, 195, 0.1);
}

.utm-input::placeholder {
    color: var(--app-text-secondary);
    opacity: 0.6;
}

.url-input-wrapper {
    position: relative;
}

.url-input-wrapper .utm-input {
    padding-right: 3rem;
}

/* ===============================
   URL Validation
   =============================== */
.url-validation {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    min-height: 1.2rem;
    transition: all 0.2s ease;
}

.url-validation.valid {
    color: #22c55e;
}

.url-validation.warning {
    color: #f59e0b;
}

.url-validation.invalid {
    color: #ef4444;
}

/* ===============================
   Source Chips
   =============================== */
.chips-label {
    font-size: 0.8rem;
    color: var(--app-text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.source-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 2rem;
    background: var(--card-bg-secondary);
    color: var(--app-text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.source-chip:hover {
    border-color: var(--primary-color);
    background: rgba(37, 111, 195, 0.05);
    transform: translateY(-1px);
}

.source-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 111, 195, 0.25);
}

.chip-label {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===============================
   Medium Tags
   =============================== */
.medium-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.medium-tag {
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.375rem;
    background: var(--card-bg-secondary);
    color: var(--app-text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.medium-tag:hover {
    border-color: var(--primary-color);
    color: var(--app-text-primary);
}

.medium-tag.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-color: #22c55e;
}

/* ===============================
   Mode Toggle
   =============================== */
.mode-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mode-toggle-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mode-label {
    font-size: 0.8rem;
    color: var(--app-text-secondary);
    font-weight: 500;
}

/* Magic Mode Nudge */
.magic-nudge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: 1.5px solid var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.magic-nudge:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(37, 111, 195, 0.3);
    transform: translateY(-1px);
}

/* Highlight effect when Magic Fill is scrolled into view */
.magic-fill-section.magic-highlight {
    box-shadow: 0 0 0 3px var(--primary-color), 0 4px 20px rgba(37, 111, 195, 0.2);
    transition: box-shadow 0.4s ease;
}

/* Magic result URL block */
.magic-generated-url {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--app-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.magic-url-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--app-text-primary);
    margin-bottom: 0.5rem;
}

.magic-url-text {
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--primary-color);
    word-break: break-all;
    padding: 0.75rem;
    background: var(--app-bg);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.magic-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.magic-copy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-subtle);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

/* ===============================
   Generated URL Display
   =============================== */
.generated-url-card {
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.generated-url-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--app-text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-display {
    background: var(--card-bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-all;
    min-height: 3rem;
    position: relative;
}

.url-placeholder {
    color: var(--app-text-secondary);
    opacity: 0.5;
    font-style: italic;
    font-family: inherit;
}

/* Color-coded parameters */
.url-base {
    color: var(--app-text-primary);
}

.url-separator {
    color: var(--app-text-secondary);
    opacity: 0.5;
}

.param-key {
    opacity: 0.7;
}

.param-val {
    font-weight: 600;
}

.param-source {
    color: #3b82f6;
}

.param-medium {
    color: #22c55e;
}

.param-campaign {
    color: #a855f7;
}

.param-term {
    color: #f59e0b;
}

.param-content {
    color: #ec4899;
}

/* URL meta row */
.url-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--app-text-secondary);
    transition: color 0.2s ease;
}

.char-count.warning {
    color: #f59e0b;
}

.char-count.danger {
    color: #ef4444;
    font-weight: 600;
}

.platform-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.compat-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.badge-ok {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warn {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ===============================
   Action Buttons
   =============================== */
.url-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d5ba0 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 111, 195, 0.3);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    background: var(--card-bg-primary);
    color: var(--app-text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.shorten-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
}

.shorten-btn:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: white;
    border-color: #f59e0b;
}

/* ===============================
   Toast Notification
   =============================== */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--app-text-primary);
    color: var(--card-bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===============================
   Magic Fill Section
   =============================== */
.magic-fill-section {
    padding: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    background: linear-gradient(135deg, var(--card-bg-primary) 0%, rgba(168, 85, 247, 0.03) 100%);
}

.magic-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.magic-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--app-text-primary);
}

.premium-badge {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.magic-description {
    color: var(--app-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.magic-prompt-textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    background: var(--card-bg-secondary);
    color: var(--app-text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s ease;
    margin-bottom: 1rem;
}

.magic-prompt-textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.magic-prompt-textarea::placeholder {
    color: var(--app-text-secondary);
    opacity: 0.6;
}

.magic-gate {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.magic-gate .email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    background: var(--card-bg-primary);
    color: var(--app-text-primary);
    font-size: 0.85rem;
}

.magic-gate .email-input:focus {
    outline: none;
    border-color: #a855f7;
}

.magic-fill-btn {
    padding: 0.7rem 1.25rem;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.magic-fill-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.magic-fill-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.magic-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.25rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.magic-result {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.magic-result-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.magic-result-item:nth-child(1) {
    animation-delay: 0s;
}

.magic-result-item:nth-child(2) {
    animation-delay: 0.1s;
}

.magic-result-item:nth-child(3) {
    animation-delay: 0.2s;
}

.magic-result-item:nth-child(4) {
    animation-delay: 0.3s;
}

.magic-result-item:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.magic-param {
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #a855f7;
    font-size: 0.8rem;
    min-width: 110px;
}

.magic-value {
    font-weight: 600;
    color: var(--app-text-primary);
}

/* ===============================
   Bulk Builder Section
   =============================== */
.bulk-section {
    padding: 1.5rem;
}

.bulk-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bulk-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--app-text-primary);
}

.bulk-gate {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg-secondary);
    border-radius: 0.75rem;
}

.bulk-gate p {
    color: var(--app-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.bulk-gate-row {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.bulk-gate-row .email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    background: var(--card-bg-primary);
    color: var(--app-text-primary);
    font-size: 0.85rem;
}

.bulk-gate-row .email-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.bulk-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    background: var(--card-bg-secondary);
    color: var(--app-text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 1rem;
}

.bulk-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 111, 195, 0.1);
}

.bulk-textarea::placeholder {
    font-family: inherit;
    color: var(--app-text-secondary);
    opacity: 0.5;
}

.bulk-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.bulk-results {
    margin-top: 1rem;
}

.bulk-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.bulk-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}

.bulk-url {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--app-text-primary);
    word-break: break-all;
    flex: 1;
}

.bulk-empty {
    text-align: center;
    color: var(--app-text-secondary);
    padding: 1rem;
    font-size: 0.85rem;
}

.bulk-format-help {
    font-size: 0.75rem;
    color: var(--app-text-secondary);
    margin-bottom: 0.75rem;
}

.bulk-format-help code {
    background: var(--card-bg-secondary);
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    font-size: 0.7rem;
}

/* ===============================
   History Section
   =============================== */
.history-section {
    padding: 1.5rem;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--app-text-primary);
}

.clear-history-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.375rem;
    background: transparent;
    color: var(--app-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-history-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s ease;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: var(--card-bg-secondary);
}

.history-url {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--app-text-primary);
    word-break: break-all;
    flex: 1;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.history-time {
    font-size: 0.7rem;
    color: var(--app-text-secondary);
}

.history-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem;
    transition: transform 0.2s ease;
}

.history-copy-btn:hover {
    transform: scale(1.2);
}

.history-empty {
    text-align: center;
    color: var(--app-text-secondary);
    font-size: 0.85rem;
    padding: 1.5rem;
    opacity: 0.7;
}

/* ===============================
   Parameter Guide
   =============================== */
.param-guide {
    padding: 1.5rem;
}

.param-guide-grid {
    display: grid;
    gap: 0.75rem;
}

.param-guide-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--card-bg-secondary);
}

@media (max-width: 640px) {
    .param-guide-item {
        grid-template-columns: 1fr;
    }
}

.param-guide-name {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.param-guide-name .param-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-source {
    background: #3b82f6;
}

.dot-medium {
    background: #22c55e;
}

.dot-campaign {
    background: #a855f7;
}

.dot-term {
    background: #f59e0b;
}

.dot-content {
    background: #ec4899;
}

.param-guide-desc {
    font-size: 0.8rem;
    color: var(--app-text-secondary);
    line-height: 1.5;
}

.param-tip {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* ===============================
   Benefits Section
   =============================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        width: 90%;
        margin: 0 auto;
    }
}

.benefit-card {
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.benefit-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--app-text-primary);
    margin-bottom: 0.5rem;
}

.benefit-desc {
    font-size: 0.85rem;
    color: var(--app-text-secondary);
    line-height: 1.5;
}

/* ===============================
   FAQ Section
   =============================== */
.faq-container {
    max-width: 1100px;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    background: none;
    border: none;
    color: var(--app-text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer p {
    padding-bottom: 1.25rem;
    color: var(--app-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===============================
   CTA Section
   =============================== */
.cta-section {
    max-width: 800px;
}

/* ===============================
   Section Title
   =============================== */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--app-text-primary);
}

/* ===============================
   Responsive Adjustments
   =============================== */
@media (max-width: 640px) {
    .magic-gate {
        flex-direction: column;
    }

    .magic-gate .email-input {
        width: 100%;
    }

    .url-actions {
        flex-direction: column;
    }

    .url-actions .copy-btn,
    .url-actions .action-btn {
        width: 100%;
        justify-content: center;
    }

    .generated-url-card {
        padding: 1rem;
    }

    .source-chip {
        padding: 0.35rem 0.6rem;
    }

    .chip-label {
        font-size: 0.7rem;
    }
}