@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary: #f97316;
    --primary-dark: #c2410c;
    --primary-light: #fdba74;
    --bg-dark: #0f0f0f;
    --bg-card: rgba(30, 20, 10, 0.85);
    --text: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a120b 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

header {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(249, 115, 22, 0.3);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(249, 115, 22, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(249, 115, 22, 0.8);
}

nav { display: flex; gap: 8px; flex-wrap: wrap; }

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
    transition: left 0.5s;
}

nav a:hover::before { left: 100%; }

nav a:hover, nav a.active {
    background: rgba(249, 115, 22, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.btn {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before { width: 300px; height: 300px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; }
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.btn-info { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.card {
    background: rgba(30, 20, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}

.card:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.15);
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px rgba(249, 115, 22, 0.5); } 50% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.8); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }

.card-title {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(249, 115, 22, 0.3);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(194, 65, 12, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before { opacity: 1; }

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.3);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-light);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    position: relative;
    z-index: 1;
}

.server-status-widget {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(15px);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.2);
}

.server-status-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 15px;
}

.server-title {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #22c55e;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #22c55e;
}

.status-text {
    font-weight: 700;
    color: #22c55e;
    font-size: 14px;
}

.server-ip-container {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.server-ip {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: var(--primary-light);
    letter-spacing: 1px;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.copy-btn.copied { background: #22c55e; }

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    position: relative;
    z-index: 1;
}

.server-info-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    text-align: center;
    transition: var(--transition);
}

.server-info-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

.info-label { font-size: 12px; color: #94a3b8; margin-bottom: 5px; }
.info-value { font-size: 20px; font-weight: 900; color: var(--primary); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--primary-light); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.rank-card {
    background: linear-gradient(135deg, rgba(20, 10, 5, 0.95), rgba(30, 15, 8, 0.95));
    border: 2px solid;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.rank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.rank-card:hover::before { opacity: 1; }

.rank-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.4);
}

.rank-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid rgba(249, 115, 22, 0.3);
}

.rank-card-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.rank-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    image-rendering: pixelated;
    animation: float 4s ease-in-out infinite;
}

.rank-name {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.rank-price {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #fbbf24;
    margin: 15px 0;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.rank-description {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border-right: 3px solid var(--primary);
}

.rank-features {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.rank-features li {
    padding: 8px 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.rank-features li i {
    color: var(--primary);
    font-size: 12px;
}

.rank-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin: 5px;
}

.badge-success { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 1px solid #22c55e; }
.badge-warning { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid #ef4444; }
.badge-info { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 1px solid #3b82f6; }

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 700;
    animation: slideInLeft 0.5s ease-out;
}

.alert-success { background: rgba(34, 197, 94, 0.2); border: 1px solid #22c55e; color: #4ade80; }
.alert-error { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #f87171; }
.alert-info { background: rgba(249, 115, 22, 0.2); border: 1px solid var(--primary); color: var(--primary-light); }

table { 
    width: 100%; 
    border-collapse: collapse; 
    background: rgba(0,0,0,0.3); 
    border-radius: 8px; 
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

th, td { padding: 12px; text-align: right; border-bottom: 1px solid rgba(249, 115, 22, 0.2); }
th { 
    background: rgba(249, 115, 22, 0.2); 
    color: var(--primary-light); 
    font-family: 'Vazirmatn', sans-serif; 
    font-weight: 700; 
    font-size: 14px;
}

tr:hover {
    background: rgba(249, 115, 22, 0.05);
    transform: scale(1.01);
    transition: var(--transition);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 2px solid var(--primary);
}

footer {
    background: linear-gradient(135deg, rgba(10, 5, 0, 0.98), rgba(26, 18, 11, 0.98));
    backdrop-filter: blur(20px);
    border-top: 3px solid var(--primary);
    padding: 60px 0 30px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), var(--primary), transparent);
    animation: glow 3s ease-in-out infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.footer-section p, .footer-section a {
    color: #94a3b8;
    font-size: 14px;
    line-height: 2.4;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section a:hover {
    color: var(--primary-light);
    transform: translateX(-8px);
}

.footer-section i {
    color: var(--primary);
    width: 20px;
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(249, 115, 22, 0.1);
    border: 2px solid var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    font-size: 20px;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-8px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
}

.footer-bottom p {
    color: #64748b;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.98), rgba(15, 10, 5, 0.98));
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 35px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s ease-out;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(249, 115, 22, 0.3);
}

.modal-title {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(249, 115, 22, 0.1);
    transform: rotate(90deg);
}

.image-preview {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px dashed rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-placeholder {
    color: #94a3b8;
    text-align: center;
    padding: 20px;
}

.image-preview-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--primary);
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: block;
    padding: 12px;
    background: rgba(249, 115, 22, 0.1);
    border: 2px dashed rgba(249, 115, 22, 0.4);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-light);
}

.file-input-label:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--primary);
}

.breadcrumb .current {
    color: var(--primary-light);
    font-weight: 700;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(249, 115, 22, 0.3);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.product-price {
    font-size: 28px;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    text-align: center;
}

.product-description {
    color: #cbd5e1;
    line-height: 2;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border-right: 4px solid var(--primary);
}

.product-features {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.product-features li {
    padding: 12px 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li i {
    color: var(--primary);
    font-size: 16px;
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 10px; }
    nav { display: none; width: 100%; flex-direction: column; gap: 5px; }
    nav.active { display: flex; }
    nav a { width: 100%; text-align: center; padding: 10px; }
    .mobile-menu-btn { display: block; position: absolute; top: 15px; right: 20px; }
    .logo { font-size: 20px; }
    .card { padding: 15px; }
    .card-title { font-size: 18px; }
    .stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .stat-value { font-size: 28px; }
    .ranks-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; margin-bottom: 10px; }
    table { font-size: 12px; }
    th, td { padding: 8px; }
    .server-ip { font-size: 16px; }
    .server-info-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .server-header { flex-direction: column; text-align: center; }
    .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 10px; }
    .card { padding: 12px; }
    .rank-icon { width: 60px; height: 60px; }
    .server-ip { font-size: 14px; }
    .server-status-widget { padding: 20px; }
    .stat-card { padding: 20px; }
    .stat-icon { font-size: 28px; }
    .stat-value { font-size: 24px; }
    .modal-content { padding: 20px; }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }