* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Exo 2', 'Orbitron', sans-serif; line-height: 1.7; color: #e0e6ed; background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0d0d20 100%); min-height: 100vh; position: relative; overflow-x: hidden; }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23ffffff' opacity='0.3'/%3E%3C/svg%3E"); pointer-events: none; z-index: -1; animation: stars 60s linear infinite; }
@keyframes stars { from { background-position: 0 0; } to { background-position: 1000px 1000px; } }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: #00d4ff; text-decoration: none; transition: all 0.3s; }
a:hover { color: #ff6b9d; }

header { background: linear-gradient(90deg, rgba(10,10,30,0.95) 0%, rgba(26,26,50,0.95) 100%); backdrop-filter: blur(10px); padding: 16px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #00d4ff33; }
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.logo { font-size: 24px; font-weight: 700; color: #00d4ff; text-shadow: 0 0 15px #00d4ff; letter-spacing: 1px; }
.logo:hover { color: #ff6b9d; text-shadow: 0 0 15px #ff6b9d; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a { color: #e0e6ed; font-weight: 500; padding: 8px 14px; border: 1px solid #00d4ff55; border-radius: 6px; font-size: 14px; transition: all 0.3s; }
nav a:hover { background: #00d4ff22; color: #00d4ff; border-color: #00d4ff; }
nav a.active { background: #00d4ff; color: #0a0a1a; border-color: #00d4ff; }

.hero { background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%); color: #00d4ff; padding: 70px 0; text-align: center; border-bottom: 2px solid #ff6b9d55; position: relative; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 2px; background: linear-gradient(90deg, transparent, #00d4ff, #ff6b9d, #00d4ff, transparent); }
.hero h1 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 8px; text-shadow: 0 0 20px #00d4ff; letter-spacing: 1px; }
.hero p { font-size: clamp(16px, 2.5vw, 21px); color: #8899aa; }

.main { padding: 50px 0; min-height: 70vh; }

h1 { font-size: 36px; color: #00d4ff; margin-bottom: 20px; text-shadow: 0 0 10px #00d4ff88; }
h2 { font-size: 28px; color: #ff6b9d; margin: 35px 0 18px; border-bottom: 1px solid #ff6b9d44; padding-bottom: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; margin: 28px 0; }
.card { background: linear-gradient(145deg, #1a1a2e, #0d0d20); border: 1px solid #00d4ff33; border-radius: 16px; transition: all 0.35s; overflow: hidden; }
.card:hover { transform: translateY(-6px); border-color: #ff6b9d; box-shadow: 0 8px 30px rgba(255,107,157,0.2); }
.card-body { padding: 24px; text-align: center; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: #00d4ff; }
.card p { color: #8899aa; font-size: 14px; margin-bottom: 16px; }
.card .btn { display: inline-block; background: linear-gradient(135deg, #00d4ff, #0099cc); color: #0a0a1a; padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.card .btn:hover { background: linear-gradient(135deg, #ff6b9d, #ff4477); box-shadow: 0 4px 20px rgba(255,107,157,0.4); }

.tool-card .card-icon { width: 100%; height: 120px; background: linear-gradient(135deg, #0d0d20, #1a1a2e); display: flex; align-items: center; justify-content: center; font-size: 48px; border-bottom: 1px solid #00d4ff22; }

.tool-page { background: linear-gradient(145deg, #1a1a2e, #0d0d20); border: 1px solid #00d4ff44; border-radius: 20px; padding: 35px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); margin: 20px auto; max-width: 800px; }
.tool-page h1 { font-size: 28px; margin-bottom: 10px; }
.tool-page .description { color: #8899aa; margin-bottom: 25px; font-size: 15px; }
.tool-page label { display: block; margin: 15px 0 8px; color: #00d4ff; font-weight: 600; }
.tool-page input, .tool-page textarea, .tool-page select { width: 100%; padding: 14px 18px; background: #0a0a1a; border: 1px solid #00d4ff44; border-radius: 10px; color: #e0e6ed; font-size: 15px; font-family: inherit; transition: all 0.3s; }
.tool-page input:focus, .tool-page textarea:focus, .tool-page select:focus { outline: none; border-color: #00d4ff; box-shadow: 0 0 15px #00d4ff33; }
.tool-page textarea { min-height: 150px; resize: vertical; font-family: 'Courier New', monospace; }
.tool-page button { padding: 14px 32px; border: none; background: linear-gradient(135deg, #00d4ff, #0099cc); color: #0a0a1a; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 15px; margin: 10px 5px; transition: all 0.3s; }
.tool-page button:hover { background: linear-gradient(135deg, #ff6b9d, #ff4477); transform: scale(1.02); }
.tool-page .result { background: #0a0a1a; border: 1px solid #00d4ff44; border-radius: 12px; padding: 20px; margin-top: 20px; min-height: 80px; font-family: 'Courier New', monospace; color: #00ff88; white-space: pre-wrap; word-break: break-all; }

.article-page { background: linear-gradient(145deg, #1a1a2e, #0d0d20); border: 1px solid #00d4ff44; border-radius: 20px; padding: 40px; max-width: 850px; margin: 0 auto; }
.article-page h1 { font-size: 32px; color: #00d4ff; margin-bottom: 12px; }
.article-page .meta { color: #668899; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #00d4ff22; font-size: 14px; }
.article-page .content { font-size: 17px; line-height: 1.85; color: #b0bcc8; }
.article-page .content h2 { color: #ff6b9d; font-size: 22px; margin-top: 30px; border: none; }

footer { background: #0a0a1a; color: #668899; padding: 30px 0; text-align: center; margin-top: 60px; border-top: 1px solid #00d4ff22; }
footer a { color: #00d4ff; margin: 0 12px; }
footer a:hover { color: #ff6b9d; }

.back-link { display: inline-block; margin-bottom: 20px; color: #668899; }
.back-link:hover { color: #00d4ff; }

.btn { display: inline-block; background: linear-gradient(135deg, #00d4ff, #0099cc); color: #0a0a1a; padding: 14px 32px; border-radius: 10px; font-weight: 700; margin: 10px 6px; transition: all 0.3s; }
.btn:hover { background: linear-gradient(135deg, #ff6b9d, #ff4477); box-shadow: 0 4px 20px rgba(255,107,157,0.4); }
.btn-secondary { background: transparent; border: 2px solid #ff6b9d; color: #ff6b9d; }
.btn-secondary:hover { background: #ff6b9d; color: #0a0a1a; }

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

@media (max-width: 600px) {
.tool-page { padding: 20px; margin: 10px; }
.card-body { padding: 18px; }
.article-page { padding: 24px; margin: 10px; }
}
