/* Archeos Website - Modern Design with Hexagonal 3D Background */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Hexagonal 3D Background */
.hex-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hex-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
}

.hex {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 215, 0, 0.1));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.hex:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.hex:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.hex:nth-child(3) { top: 60%; left: 15%; animation-delay: 2s; }
.hex:nth-child(4) { top: 70%; left: 75%; animation-delay: 3s; }
.hex:nth-child(5) { top: 30%; left: 50%; animation-delay: 4s; }
.hex:nth-child(6) { top: 80%; left: 40%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: slideInDown 1s ease-out;
}

.header .subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
    animation: slideInUp 1s ease-out 0.3s both;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav a {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.nav a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    background: linear-gradient(135deg, #e67e22, #d35400);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stat-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    font-size: 1.1rem;
}

/* Rules Section */
.rules {
    padding: 80px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Interactive Rules Block Enhancements */
.rules-content {
    perspective: 800px;
}

.rules-card {
    position: relative;
    overflow: hidden;
}

.rules-card:before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 30%, rgba(243,156,18,0.15), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(231,76,60,0.12), transparent 60%);
    transform: rotate(10deg);
    pointer-events: none;
}

.rules-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
}

.rule-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
}

.rule-toggle {
    font-size: 1rem;
    color: #e67e22;
    transition: transform .2s ease;
}

.rule-header .rules-icon { flex: 0 0 auto; }
.rule-header h3 {
    flex: 1 1 auto;
    margin: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 1.15rem;
}
.rule-header .rule-toggle { flex: 0 0 auto; }

.rule-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease;
    opacity: 0.0;
}

.rules-card.open .rule-body {
    max-height: 300px;
    opacity: 1;
    margin-top: 10px;
}

.rules-card.open .rule-toggle {
    transform: rotate(45deg);
}

.rules-icon {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}

.rules-card h3 {
    letter-spacing: 0.3px;
}

.rules-card p {
    text-wrap: balance;
}

.rules h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rules-subtitle {
    max-width: 920px;
    margin: -20px auto 40px auto;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0 20px;
}

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rules-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.rules-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.rules-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.rules-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.rules-card p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.rules-card.cta {
    background: linear-gradient(135deg, #f8f9ff, #fefaf5);
    border: 1px solid rgba(243, 156, 18, 0.25);
}

.rules-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.35);
    transition: all .2s ease;
}

.rules-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(52, 152, 219, 0.45);
}

/* Telegram Links */
.telegram-link {
    color: #0088cc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.telegram-link:hover {
    color: #006699;
    text-decoration: underline;
    transform: scale(1.05);
}

.telegram-link:before {
    content: "📱";
    margin-right: 5px;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Services Section */
.services {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #2c3e50, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Chat Activity Visuals */
.chat-activity {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-row {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.chat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.chat-title {
    font-weight: 800;
    color: #2c3e50;
}

.chat-stats {
    display: flex;
    gap: 14px;
    color: #59636e;
    font-size: 0.95rem;
}

.chat-bar {
    width: 100%;
    height: 10px;
    background: rgba(0,0,0,0.06);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.chat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    width: 0;
    border-radius: 6px;
    animation: fillIn 1.2s ease forwards;
}

@keyframes fillIn {
    from { width: 0; }
    to { width: var(--target, 100%); }
}

.chat-footer {
    margin-top: 8px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .chat-meta { flex-direction: column; align-items: flex-start; }
    .chat-stats { flex-wrap: wrap; gap: 10px; }
}

.service-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-item p {
    color: #666;
    margin-bottom: 20px;
}

.service-item .btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.footer p {
    color: #666;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    padding: 12px;
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 26px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rules h2 {
        font-size: 2.5rem;
    }
    .rules-subtitle {
        font-size: 1rem;
        margin: -10px auto 30px auto;
    }
    
    .rules-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .rules-card {
        padding: 25px 15px;
    }
    
    .rules-icon {
        font-size: 2.5rem;
    }
    
    .rules-card h3 {
        font-size: 1.3rem;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .services {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header {
        padding: 20px;
    }
    
    .services {
        padding: 20px 15px;
    }
}

.user-chip {
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: rgba(255,255,255,0.9);
	border: 1px solid rgba(255,215,0,0.3);
	border-radius: 999px;
}
.user-chip img { width: 28px; height: 28px; border-radius: 50%; }
.user-chip .btn-mini {
	display: inline-block;
	padding: 6px 10px;
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: #fff; text-decoration: none; border-radius: 999px; font-weight: 700;
}

/* RPG card */
.rpg-card {
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,250,255,0.95));
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.rpg-header { display:flex; justify-content: space-between; align-items:center; margin-bottom:8px; }
.rpg-title { font-weight:800; color:#2c3e50; font-size:1.1rem; }
.rpg-level { font-weight:700; color:#e67e22; }
.rpg-coins { display:flex; gap:10px; margin:8px 0 12px; }
.coin { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:rgba(0,0,0,0.05); font-weight:700; }
.coin.gold { background: rgba(241, 196, 15, 0.15); }
.coin.silver { background: rgba(189, 195, 199, 0.25); }
.coin.copper { background: rgba(230, 126, 34, 0.15); }
.stat-grid { display:grid; grid-template-columns: repeat(7, minmax(70px, 1fr)); gap:8px; }
.stat { background: rgba(0,0,0,0.04); border-radius:10px; padding:8px; text-align:center; }
.stat span { color:#7f8c8d; font-size:0.85rem; display:block; }
.stat b { color:#2c3e50; font-size:1.05rem; }
.inv-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:8px; }
.inv-list li { background: rgba(0,0,0,0.04); border-radius:10px; padding:8px 10px; display:flex; justify-content:space-between; }
.inv-title { font-weight:600; }
.inv-qty { color:#7f8c8d; }

