/* ===================================
   RESET & BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #00a8cc;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background: #111;
    border-bottom: 2px solid #00d4ff;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00d4ff;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #e0e0e0;
    font-weight: 500;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: #333;
    color: #fff;
}

.btn-secondary:hover {
    background: #444;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* ===================================
   HERO
   =================================== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #00d4ff;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ccc;
}

/* ===================================
   FEATURES
   =================================== */
.features {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #111;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #222;
    text-align: center;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #00d4ff;
}

/* ===================================
   PRODUCTS
   =================================== */
.products-section {
    padding: 60px 0;
}

.products-section h1 {
    margin-bottom: 40px;
    font-size: 36px;
    color: #00d4ff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px;
    font-size: 22px;
    color: #00d4ff;
}

.product-card p {
    padding: 0 20px 20px;
    color: #ccc;
}

.product-card .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* ===================================
   PRODUCT DETAIL
   =================================== */
.product-detail {
    padding: 60px 0;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-detail-image {
    position: relative;
}

.product-detail-image img {
    width: 100%;
    border-radius: 12px;
}

.instant-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #00d4ff;
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
}

.product-detail-info h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #00d4ff;
}

.product-detail-description {
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
}

/* ===================================
   PRICING
   =================================== */
.pricing-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #00d4ff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: #111;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border: 2px solid #222;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #00d4ff;
}

.pricing-price {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #fff;
}

.pricing-card form {
    margin: 0;
}

.pricing-card .btn {
    width: 100%;
}

/* ===================================
   AUTH
   =================================== */
.auth-section {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 450px;
    margin: 0 auto;
    background: #111;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #222;
}

.auth-card h1 {
    margin-bottom: 30px;
    color: #00d4ff;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0a0a0a;
    color: #fff;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #ccc;
}

/* ===================================
   ACCOUNT
   =================================== */
.account-section {
    padding: 60px 0;
    min-height: 70vh;
}

.account-section h1 {
    margin-bottom: 10px;
    color: #00d4ff;
}

.account-content {
    margin-top: 40px;
}

.account-content h2 {
    margin-bottom: 30px;
    color: #00d4ff;
}

.licenses-table-wrapper {
    overflow-x: auto;
}

.licenses-table {
    width: 100%;
    background: #111;
    border-radius: 12px;
    border-collapse: collapse;
    overflow: hidden;
}

.licenses-table th,
.licenses-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.licenses-table th {
    background: #1a1a1a;
    color: #00d4ff;
    font-weight: 600;
}

.license-key code {
    background: #0a0a0a;
    padding: 8px 12px;
    border-radius: 6px;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
}

.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge-active {
    background: #00d4ff;
    color: #000;
}

.badge-expired {
    background: #ff4444;
    color: #fff;
}

/* ===================================
   PAYMENT RESULT
   =================================== */
.payment-result {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.payment-success-card,
.payment-error-card {
    max-width: 600px;
    margin: 0 auto;
    background: #111;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
}

.payment-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px;
}

.payment-icon.success {
    background: #00d4ff;
    color: #000;
}

.payment-icon.error {
    background: #ff4444;
    color: #fff;
}

.payment-success-card h1,
.payment-error-card h1 {
    margin-bottom: 20px;
    color: #00d4ff;
}

.payment-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ===================================
   ALERTS
   =================================== */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #ff4444;
    color: #fff;
}

.alert-success {
    background: #00d4ff;
    color: #000;
}

/* ===================================
   EMPTY STATE
   =================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #111;
    border-radius: 12px;
    border: 1px solid #222;
}

.empty-state h2 {
    margin-bottom: 15px;
    color: #00d4ff;
}

.empty-state p {
    margin-bottom: 30px;
    color: #ccc;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: #111;
    border-top: 2px solid #00d4ff;
    padding: 30px 0;
    margin-top: 80px;
    text-align: center;
    color: #888;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .main-nav {
        flex-direction: column;
        gap: 15px;
    }

    .payment-actions {
        flex-direction: column;
    }
}