* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0a0f1a; color: #e8edf5; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; background: linear-gradient(180deg, #111827 0%, #0a0f1a 100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; background: linear-gradient(135deg, #fff 0%, #93c5fd 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { font-size: 1.15rem; color: #94a3b8; max-width: 700px; margin: 0 auto 32px; }
.btn-primary { display: inline-block; padding: 16px 36px; background: #0066FF; color: white; font-weight: 600; font-size: 1.1rem; border-radius: 10px; text-decoration: none; transition: background 0.2s, transform 0.1s; }
.btn-primary:hover { background: #0052cc; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* Nav tabs */
.countries-nav { position: sticky; top: 0; z-index: 100; background: rgba(10,15,26,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #1e293b; padding: 16px 0; }
.countries-nav .container { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.country-tab { padding: 10px 20px; background: transparent; border: 1px solid #334155; color: #94a3b8; font-size: 0.9rem; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.country-tab:hover { border-color: #0066FF; color: #0066FF; }
.country-tab.active { background: #0066FF; border-color: #0066FF; color: white; }

/* Grid */
.countries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 40px 0; }
.country-card { background: #111827; border: 1px solid #1e293b; border-radius: 16px; padding: 24px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; }
.country-card:hover { transform: translateY(-4px); border-color: #0066FF; box-shadow: 0 12px 40px rgba(0,102,255,0.15); }
.country-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0066FF, #00D4AA); opacity: 0; transition: opacity 0.2s; }
.country-card:hover::before { opacity: 1; }
.country-card.unique::before { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.country-card.windows::before { background: linear-gradient(90deg, #0078D4, #00BCF2); }

.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.flag { width: 44px; height: 30px; border-radius: 6px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.flag-placeholder { width: 44px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #334155, #1e293b); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #64748b; }
.country-name { font-size: 1.1rem; font-weight: 600; color: #fff; }
.country-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.tag.unique { background: rgba(245,158,11,0.2); color: #FBBF24; border: 1px solid rgba(245,158,11,0.3); }
.tag.windows { background: rgba(0,120,212,0.2); color: #60A5FA; border: 1px solid rgba(0,120,212,0.3); }
.tag.linux { background: rgba(16,185,129,0.2); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }
.tag.popular { background: rgba(99,102,241,0.2); color: #A5B4FC; border: 1px solid rgba(99,102,241,0.3); }

.price-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid #1e293b; }
.price-label { font-size: 0.85rem; color: #64748b; }
.price { font-size: 1.5rem; font-weight: 700; color: #fff; }
.price span { font-size: 0.9rem; font-weight: 400; color: #94a3b8; }
.btn-buy { display: block; width: 100%; margin-top: 16px; padding: 12px; background: transparent; border: 1px solid #334155; color: #94a3b8; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.2s; text-align: center; text-decoration: none; }
.btn-buy:hover { background: #0066FF; border-color: #0066FF; color: white; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid #1e293b; text-align: center; color: #64748b; font-size: 0.9rem; }
.footer a { color: #0066FF; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Hidden utility */
.hidden { display: none !important; }