.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:active {
    transform: scale(0.995);
    box-shadow: var(--shadow-md);
}

.card-row {
    display: flex;
    gap: 12px;
}

.card-col {
    flex: 1;
}

.input-group {
    position: relative;
    background: var(--bg-app);
    border-radius: var(--radius-sm);
    height: 56px;
    border: 1px solid transparent;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.input-group:focus-within {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.input-group label {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    pointer-events: none;
}

.input-group input {
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    padding: 20px 40px 4px 12px;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-main);
}

.btn-clear-input {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    border: none;
    background: none;
    color: #b2bec3;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.action-bar {
    padding: 20px 0 10px;
    display: flex;
    gap: 12px;
    z-index: 30;
}

.btn {
    height: 52px;
    border-radius: var(--radius-md);
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    flex: 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.45);
}

.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    flex: 1;
    background: var(--bg-app);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-secondary:active {
    background: var(--border);
}

.results-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.results-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.res-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.res-val {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.15s;
}

.res-val:hover {
    opacity: 0.8;
}

.res-val.copied {
    opacity: 0.5;
}

.res-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.mode-switch {
    display: flex;
    background: var(--bg-app);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.mode-switch label {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
}

.mode-switch input {
    display: none;
}

.mode-switch input:checked+span {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.mode-switch span {
    display: block;
    padding: 4px;
    border-radius: 6px;
}

.copy-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-main);
    color: var(--bg-surface);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 200;
    pointer-events: none;
}

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