/* --- EVE ONLINE UI THEME --- */
:root {
    --accent-color: #00ffcc;
    --bg-dark: #05070a;
    --bg-panel: rgba(10, 15, 20, 0.9);
    --border-color: #2a3a4a;
    --text-main: #b0c4de;
    --text-muted: #8fa3b0;
    --text-dim: #556b7d;
    --font-mono: 'Consolas', monospace;
}

* {
    box-sizing: border-box;
}

body { 
    background-color: var(--bg-dark); 
    background-image: radial-gradient(circle at center, #0e161f 0%, var(--bg-dark) 100%);
    color: var(--text-main); 
    font-family: "Segoe UI", "Roboto", sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* UI Scanline Overlay */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.main-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    z-index: 20;
}

.tech-panel {
    background: var(--bg-panel);
    border: 1px solid #1a2a3a;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border-top: 3px solid var(--accent-color);
}

/* Rules Section */
.rules-container, .guide-container { flex: 1; padding: 30px; overflow-y: auto; min-width: 350px; }
.rules-container h2, .guide-container h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-top: 0; margin-bottom: 20px; }
.rules-container ul { padding-left: 20px; margin: 0; }
.rules-container li { color: var(--text-muted); margin-bottom: 16px; font-size: 15px; list-style-type: square; line-height: 1.6; }

/* Guide Content Styling */
.guide-content h3 { font-size: 15px; color: #fff; margin: 20px 0 8px 0; text-transform: uppercase; letter-spacing: 1px; }
.guide-content p { font-size: 15px; line-height: 1.6; color: var(--text-main); margin-bottom: 15px; }

/* Calculator Container */
.container { padding: 30px; width: 100%; flex: 1.5; min-width: 480px; }

/* --- LOGO STYLING --- */
.logo-container { 
    text-align: center; 
    margin-bottom: 15px; 
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-logo { 
    max-width: 120px; 
    max-height: 200px; 
    width: auto;
    height: auto; 
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.4)); 
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.03); /* Slight interactive pop */
}

h1 { 
    font-size: 1.4rem; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    text-align: center; 
    color: #fff; 
    margin: 5px 0 25px 0; 
}

/* Input Fields */
.input-group { margin-bottom: 18px; }
.small-input-group { flex: 1; min-width: 0; }

label { 
    font-size: 11px; 
    color: var(--text-dim); 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 6px; 
    font-weight: bold; 
    letter-spacing: 1px; 
}

input, select {
    flex-grow: 1; 
    min-width: 0; 
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color); 
    padding: 12px; 
    color: var(--accent-color);
    font-family: var(--font-mono); 
    font-size: 15px; 
    outline: none;
}

.readonly-input { color: #fff !important; background: rgba(20, 30, 40, 0.5) !important; cursor: default; }
.flex-row { display: flex; gap: 8px; align-items: stretch; }
#currentRateDisplay { font-size: 11px; color: var(--accent-color); margin-top: 8px; font-weight: bold; }

.helper-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.fee-info { font-size: 10px; color: var(--accent-color); font-weight: bold; }
.helper-text a { font-size: 10px; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid #1a2a3a; }
.helper-text a:hover { color: var(--accent-color); border-color: var(--accent-color); }

/* Mini Copy Buttons */
button.mini-copy {
    width: 65px; 
    padding: 8px;
    margin-top: 0;
    font-size: 10px; 
    background: #1a2a3a;
    color: var(--text-main); 
    border: 1px solid var(--border-color); 
    cursor: pointer; 
    text-transform: uppercase;
}
button.mini-copy:hover { 
    background: var(--accent-color); 
    color: #000; 
}

/* Results Section */
.result-box { background: rgba(0, 0, 0, 0.7); padding: 20px; margin: 25px 0; text-align: center; border: 1px dashed var(--border-color); }
#totalCost { font-size: 32px; font-weight: bold; color: #fff; margin: 5px 0; font-family: var(--font-mono); }
#breakdown { font-size: 10px; color: var(--text-dim); line-height: 1.6; }

/* Primary Action Buttons */
button { 
    width: 100%; 
    padding: 16px; 
    margin-top: 10px; 
    cursor: pointer; 
    font-weight: bold; 
    text-transform: uppercase; 
    border: none; 
    font-size: 14px; 
    letter-spacing: 1px; 
}
.calc-btn { background: #fff; color: #000; }
.copy-btn { background: transparent; color: var(--accent-color); border: 1px solid var(--border-color); }
button:hover { background-color: var(--accent-color); color: #000; }

/* Discord Button */
.discord-link { text-decoration: none; display: block; margin-top: 15px; }
.discord-btn {
    background: rgba(88, 101, 242, 0.1); 
    color: #5865F2; 
    border: 1px solid #5865F2;
    padding: 12px; 
    text-align: center; 
    font-size: 11px; 
    font-weight: bold; 
    text-transform: uppercase; 
    transition: 0.2s;
}
.discord-btn:hover { background: #5865F2; color: #fff; }
.discord-icon { 
    display: inline-block; 
    width: 14px; 
    height: 14px; 
    vertical-align: middle; 
    margin-right: 8px; 
    background: currentColor; 
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 127.14 96.36"><path d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.06,72.06,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.71,32.65-1.82,56.6.39,80.21a105.73,105.73,0,0,0,32.77,16.15,77.7,77.7,0,0,0,7.32-11.89,68.68,68.68,0,0,1-11.85-5.66c.91-.66,1.8-1.34,2.66-2.05a75.6,75.6,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2.05a68.68,68.68,0,0,1-11.85,5.66,77.7,77.7,0,0,0,7.32,11.89,105.73,105.73,0,0,0,32.77-16.15C129.58,50.67,125.33,27,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.87,53,48.74,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91,65.69,84.69,65.69Z"/></svg>') no-repeat center; 
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 127.14 96.36"><path d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.06,72.06,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.71,32.65-1.82,56.6.39,80.21a105.73,105.73,0,0,0,32.77,16.15,77.7,77.7,0,0,0,7.32-11.89,68.68,68.68,0,0,1-11.85-5.66c.91-.66,1.8-1.34,2.66-2.05a75.6,75.6,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2.05a68.68,68.68,0,0,1-11.85,5.66,77.7,77.7,0,0,0,7.32,11.89,105.73,105.73,0,0,0,32.77-16.15C129.58,50.67,125.33,27,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.87,53,48.74,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91,65.69,84.69,65.69Z"/></svg>') no-repeat center; 
}

/* Responsive Mobile Layout */
@media (max-width: 850px) { 
    .main-wrapper { flex-direction: column; align-items: center; } 
    .rules-container, .guide-container { max-width: 480px; width: 100%; max-height: none; } 
}