/* --- EVE ONLINE UI THEME --- */
body { 
    background-color: #05070a; 
    background-image: radial-gradient(circle at center, #0e161f 0%, #05070a 100%);
    color: #b0c4de; 
    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: 30px;
    max-width: 1100px;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    z-index: 20;
}

.tech-panel {
    background: rgba(10, 15, 20, 0.9);
    border: 1px solid #1a2a3a;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border-top: 3px solid #00ffcc;
}

/* Rules Section */
.rules-container { flex: 1; max-width: 350px; padding: 30px; }
.rules-container h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-top: 0; }
.rules-container ul { padding-left: 20px; margin: 0; }
.rules-container li { color: #8fa3b0; margin-bottom: 12px; font-size: 14px; list-style-type: square; }

/* Calculator Container */
.container { padding: 30px; width: 100%; max-width: 480px; box-sizing: border-box; }

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

.site-logo { 
    max-width: 200px; /* Increased for better visibility */
    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: 10px; 
    color: #556b7d; 
    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 #2a3a4a; 
    padding: 12px; 
    color: #00ffcc;
    font-family: 'Consolas', monospace; 
    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: #00ffcc; 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: #00ffcc; font-weight: bold; }
.helper-text a { font-size: 10px; color: #8fa3b0; text-decoration: none; border-bottom: 1px solid #1a2a3a; }
.helper-text a:hover { color: #00ffcc; border-color: #00ffcc; }

/* Mini Copy Buttons */
.mini-copy {
    width: 60px !important; 
    font-size: 10px !important; 
    background: #1a2a3a !important;
    color: #b0c4de !important; 
    border: 1px solid #2a3a4a !important; 
    cursor: pointer; 
    text-transform: uppercase;
}
.mini-copy:hover { background: #00ffcc !important; color: #000 !important; }

/* Results Section */
.result-box { background: rgba(0, 0, 0, 0.7); padding: 20px; margin: 25px 0; text-align: center; border: 1px dashed #2a3a4a; }
#totalCost { font-size: 32px; font-weight: bold; color: #fff; margin: 5px 0; font-family: 'Consolas', monospace; }
#breakdown { font-size: 10px; color: #556b7d; 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: #00ffcc; border: 1px solid #2a3a4a; }
button:hover { background-color: #00ffcc; 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 { max-width: 480px; width: 100%; box-sizing: border-box; } 
}