* {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.5;
}

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

/* ========== ГЛАВНАЯ ========== */
.logo {
    text-align: center;
    margin-bottom: 48px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 12px;
}

.logo span {
    color: #2E7D32;
}

.activation-card {
    background: white;
    padding: 40px;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

.activation-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 28px;
}

.input-group {
    display: flex;
    gap: 12px;
}

.input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #ddd;
    font-family: 'Manrope', monospace;
    font-size: 14px;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #2E7D32;
}

.input-group button {
    padding: 14px 28px;
    background: #2E7D32;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

.card-examples {
    margin-top: 16px;
    font-size: 11px;
    color: #999;
}

.auth-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.auth-links a {
    color: #2E7D32;
    text-decoration: none;
    margin: 0 8px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
}

.feature {
    text-align: center;
}

.feature .check {
    width: 48px;
    height: 48px;
    background: #2E7D32;
    color: white;
    font-size: 24px;
    line-height: 48px;
    margin: 0 auto 12px;
}

/* ========== АВТОРИЗАЦИЯ ========== */
.auth-page {
    background: #f5f5f5;
}

.auth-card {
    background: white;
    padding: 40px;
    max-width: 440px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #2E7D32;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: #2E7D32;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.auth-footer a {
    color: #2E7D32;
    text-decoration: none;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    border-left: 3px solid #c62828;
}

/* ========== DASHBOARD ========== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 600;
}

.logout-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2E7D32;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.dashboard-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
}

.tab-btn.active {
    color: #2E7D32;
    border-bottom: 2px solid #2E7D32;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.create-card-panel {
    background: white;
    padding: 28px;
    border: 1px solid #e0e0e0;
}

.create-card-panel h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.form-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-chip {
    width: 44px;
    height: 44px;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-chip.selected {
    border-color: #000;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.perk-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f8f8;
    font-size: 13px;
    cursor: pointer;
}

.total-price {
    background: #f0fdf4;
    padding: 14px;
    text-align: right;
    font-weight: 700;
    font-size: 18px;
    margin: 20px 0;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #2E7D32;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.my-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-card-item {
    background: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e0e0e0;
}

.my-card-color {
    width: 48px;
    height: 48px;
}

.my-card-info {
    flex: 1;
}

.my-card-title {
    font-weight: 600;
    font-size: 15px;
}

.my-card-number {
    font-family: monospace;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.my-card-status {
    font-size: 11px;
    padding: 4px 12px;
    background: #f0f0f0;
}

.status-ordered {
    background: #fff3e0;
    color: #e65100;
}

.status-activated {
    background: #e8f5e9;
    color: #2E7D32;
}

/* ========== ADMIN ========== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.admin-card-row {
    background: white;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border: 1px solid #e0e0e0;
}

.admin-card-number {
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
}

.admin-card-title {
    font-size: 13px;
    color: #666;
}

.status-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.update-status-btn {
    padding: 8px 16px;
    background: #2E7D32;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.admin-table {
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    font-size: 13px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f8f8;
    font-weight: 600;
}

.perks-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.perk-tag {
    background: #f0f0f0;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
}

.perk-tag.selected {
    background: #2E7D32;
    color: white;
}

hr {
    margin: 32px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* ========== CARD VIEW (SVG без фона) ========== */
.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #2E7D32;
    text-decoration: none;
    font-size: 14px;
}

.card-svg {
    max-width: 420px;
    margin: 0 auto 24px;
}

.card-svg img, .card-svg svg {
    width: 100%;
    background: transparent;
    display: block;
}

.card-info {
    background: white;
    padding: 24px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.card-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.amount {
    font-size: 24px;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 16px;
}

.perks {
    margin-top: 16px;
}

.perks h4 {
    font-size: 14px;
    margin-bottom: 10px;
}

.perks ul {
    list-style: none;
}

.perks li {
    font-size: 13px;
    padding: 6px 0;
    color: #444;
}

.official-badge-large {
    background: #e8f5e9;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #2E7D32;
    margin-bottom: 20px;
}

.btn-activate {
    width: 100%;
    padding: 14px;
    background: #2E7D32;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.success {
    background: #e8f5e9;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: #2E7D32;
    margin-top: 20px;
}

.error {
    background: #ffebee;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: #c62828;
    margin-top: 20px;
}

.activation-code {
    background: #f5f5f5;
    padding: 20px;
    font-family: monospace;
    font-size: 20px;
    letter-spacing: 3px;
    text-align: center;
    margin: 16px 0;
}

.copy-btn {
    padding: 10px 20px;
    background: #2E7D32;
    color: white;
    border: none;
    cursor: pointer;
}

/* Общие */
button, .btn-submit, .update-status-btn, .copy-btn, .btn-auth, .btn-activate {
    transition: none;
}

button:hover, .btn-submit:hover, .btn-auth:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    .input-group {
        flex-direction: column;
    }
    .features {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .perks-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-stats, .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}