:root {
    --primary: #d4af37;
    --primary-dark: #b8941f;
    --secondary: #2c3e50;
    --bg-dark: #1a1a1a;
    --bg-card: #2a2a2a;
    --text: #ffffff;
    --text-dim: #b0b0b0;
    --success: #00ff00;
    --danger: #ff3333;
    --border: #3a3a3a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== HEADER ==================== */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23d4af37" opacity="0.05" width="2" height="2"/></svg>');
    background-size: 20px 20px;
    pointer-events: none;
}

.logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 3em;
    color: var(--primary);
    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3),
        3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.1em;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

/* ==================== MAIN CONTENT ==================== */
.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==================== CARDS ==================== */
.server-card, .verification-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, border-color 0.3s;
    width: 100%;
}

.server-card:hover, .verification-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.server-card h2, .verification-card h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.6em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ==================== IP DO SERVIDOR ==================== */
.server-ip-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid var(--primary);
}

.server-ip-box label {
    display: block;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ip-copy-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

#serverIP {
    flex: 1;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    color: var(--text);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    text-align: center;
    min-width: 0; /* important: allows flex shrink */
}

.btn-copy {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

/* ==================== STATUS ==================== */
.status-container {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    color: var(--text-dim);
    padding: 15px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.status-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.status-item label {
    display: block;
    color: var(--text-dim);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.status-item .value {
    font-size: 1.2em;
    font-weight: bold;
}

.status-online { color: var(--success); }
.status-offline { color: var(--danger); }

/* ==================== MODPACK ==================== */
.modpack-box {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #00aa00;
}

.modpack-box h3 {
    color: #00ff00;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.modpack-box p {
    color: var(--text-dim);
    margin-bottom: 15px;
}

.btn-modpack {
    display: inline-block;
    background: linear-gradient(135deg, #00aa00 0%, #008800 100%);
    color: white;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-modpack:hover {
    background: linear-gradient(135deg, #00cc00 0%, #00aa00 100%);
    transform: translateX(5px);
}

/* ==================== VERIFICAÇÃO ==================== */
.verify-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

@media (max-width: 600px) {
    .verify-steps {
        grid-template-columns: 1fr;
    }
}

.step {
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.step:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

.step-number {
    display: block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    margin: 0 auto 12px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    font-size: 1.4em;
    font-weight: bold;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: #5865F2;
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-discord:hover {
    background: #4752C4;
    transform: scale(1.05);
}

/* ==================== AD SPACES ==================== */
.ad-space {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.ad-top, .ad-middle, .ad-bottom {
    height: 90px;
    margin-bottom: 20px;
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-dim);
    border-top: 2px solid var(--border);
    margin-top: 40px;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to   { transform: translateX(0);      opacity: 1; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .header h1 { font-size: 2em; letter-spacing: 2px; }
    .ip-copy-wrapper { flex-direction: column; }
    .btn-copy { width: 100%; }
    #serverIP { text-align: center; font-size: 0.9em; }
    .server-card, .verification-card { padding: 20px 15px; }
}
