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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #fff;
}

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

header {
    background: linear-gradient(135deg, #0a0a12 0%, #151520 50%, #0d0d15 100%);
    padding: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 200, 0, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.08), transparent 50%);
    pointer-events: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

nav a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 210, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
}

h1, h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

h1 {
    font-size: 32px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px 0;
}

.product-card {
    background: linear-gradient(145deg, #1a1a22 0%, #12121a 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, #15151d 0%, #0d0d12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 15px;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 600;
}

.product-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin-bottom: 10px;
}

.buy-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #e6b800 50%, #cc9900 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buy-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffe033 0%, #ffc700 50%, #e6b800 100%);
}

.success-page, .error-page, .download-page {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(145deg, #1a1a22 0%, #12121a 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.download-btn {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 25px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.admin-login {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background: linear-gradient(145deg, #1a1a22 0%, #12121a 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.admin-login h2 {
    margin-bottom: 30px;
    color: #ffd700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #ffd700 0%, #e6b800 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.admin-panel {
    padding: 20px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-table {
    width: 100%;
    background: linear-gradient(145deg, #1a1a22 0%, #12121a 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.products-table th,
.products-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 215, 0, 0.08);
}

.products-table th {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 170, 0, 0.08) 100%);
    color: #ffd700;
    font-weight: 600;
}

.products-table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a22 0%, #12121a 100%);
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: #ffd700;
}

.close-modal {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ffd700;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

footer {
    text-align: center;
    padding: 25px 20px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 50px;
    background: linear-gradient(180deg, #08080c 0%, #050508 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.1);
    letter-spacing: 1px;
    font-size: 13px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom center, rgba(255, 215, 0, 0.05), transparent 60%);
    pointer-events: none;
}

footer p {
    position: relative;
    z-index: 1;
}

.license-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(145deg, #1a1a22 0%, #12121a 100%);
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.license-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    color: #fff;
    margin: 1rem 0;
}

.license-input::placeholder {
    color: rgba(255,255,255,0.25);
}

.license-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.purchased-product {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(145deg, #1a1a22 0%, #12121a 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.purchased-product h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.license-display {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    margin: 1rem 0;
    color: #ffd700;
}
