:root {
    --gold-primary: #D4AF37;
    --gold-light: #F4DF8D;
    --gold-dim: #AA8C2C;
    --black-bg: #0A0A0A;
    --black-card: #141414;
    --text-main: #FFFFFF;
    --text-muted: #888888;
    --border-radius: 12px;
    --shadow-gold: 0 0 15px rgba(212, 175, 55, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--black-bg);
    color: var(--text-main);
    font-family: 'Lato', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

header {
    text-align: center;
}

h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, var(--gold-dim), var(--gold-light), var(--gold-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.converter-box {
    background-color: var(--black-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-gold);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.currency-symbol {
    position: absolute;
    left: 15px;
    color: var(--gold-dim);
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
}

input[type="number"] {
    width: 100%;
    background-color: #1F1F1F;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 15px 12px 35px;
    color: var(--gold-light);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="number"]::placeholder {
    color: #444;
}

input[type="number"]:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

.icon {
    color: var(--gold-primary);
    font-size: 0.8rem;
}

.result-group {
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.result-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.result-value {
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.formula-info {
    font-size: 0.75rem;
    color: #555;
    margin-top: 10px;
    font-style: italic;
}

.action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.premium-button {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold-primary));
    color: var(--black-bg);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
}

.premium-button:active {
    transform: translateY(0);
}

.premium-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.1rem;
}

.status-msg {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.status-msg.error {
    color: #ff4d4d;
}

.status-msg.success {
    color: #4dff88;
}

footer {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* Language Selector Styles */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -15px;
}

.lang-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(5px);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    font-weight: 700;
}

.lang-btn.active {
    color: var(--gold-primary);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.lang-btn:hover:not(.active) {
    color: var(--text-main);
}

.lang-divider {
    width: 1px;
    height: 12px;
    background: rgba(212, 175, 55, 0.3);
    margin: 0 4px;
}