* {
    box-sizing: border-box;
}

:root {
    --background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --surface: #1e293b;
    --surface-light: #334155;
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.35);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: var(--background);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

header {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

button,
.nav-links button,
.nav-links a {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 240ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button:hover,
.nav-links button:hover,
.nav-links a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

button:focus-visible,
.nav-links button:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.nav-links button,
.nav-links a {
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-links button:hover,
.nav-links a:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15);
}

.nav-links button.primary,
.nav-links a.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    font-weight: 700;
}

.nav-links button.primary:hover,
.nav-links a.primary:hover {
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

main {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    margin: 2rem 0 1rem;
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    backdrop-filter: blur(8px);
    transition: all 240ms ease;
}

.card:hover {
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.form-grid {
    display: grid;
    gap: 1.25rem;
}

.form-grid input,
.form-grid button,
.form-grid select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background: rgba(51, 65, 85, 0.6);
    color: var(--text);
    transition: all 200ms ease;
    font-family: inherit;
}

.form-grid input::placeholder {
    color: var(--muted);
}

.form-grid input:focus,
.form-grid select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(51, 65, 85, 0.8);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-grid button {
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.form-grid button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4);
}

.form-grid button:active {
    transform: translateY(0);
}

.secondary {
    background: rgba(51, 65, 85, 0.6) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.secondary:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    border-color: rgba(148, 163, 184, 0.5) !important;
    color: var(--text) !important;
}

.form-grid button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4);
}

.form-grid button:active {
    transform: translateY(0);
}

.secondary {
    background: rgba(51, 65, 85, 0.6) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.secondary:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    border-color: rgba(148, 163, 184, 0.5) !important;
    color: var(--text) !important;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.register-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(300px, 1fr) 420px;
    align-items: center;
}

.register-copy {
    display: grid;
    gap: 1.5rem;
}

.register-copy p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.register-card {
    padding: 2.5rem;
}

.eyebrow {
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.2rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 800;
    font-size: 1.2rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
    border-left: 4px solid;
}

.alert.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-left-color: #ef4444;
}

.alert.success {
    background: rgba(16, 185, 129, 0.15);
    color: #86efac;
    border-left-color: #10b981;
}

.grid-3 {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 2rem;
}

.product-card {
    display: grid;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    transition: all 280ms ease;
    backdrop-filter: blur(8px);
}

.product-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
    transform: translateY(-8px);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-body {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.product-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.product-card p {
    margin: 0;
    color: var(--text-secondary);
}

.product-card .price {
    font-weight: 800;
    color: var(--primary-light);
    font-size: 1.25rem;
}

.product-card button {
    align-self: start;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
    transition: all 200ms ease;
    font-size: 0.9rem;
}

.product-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.4);
}

.collection-card {
    display: grid;
    gap: 0.75rem;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid var(--border);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(6, 182, 212, 0.18);
}

.collection-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.collection-body {
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
}

.collection-body h3 {
    margin: 0;
    font-size: 1rem;
}

.collection-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.collection-body .price {
    font-weight: 800;
    color: var(--primary-light);
    font-size: 1.05rem;
}

.collection-body ul {
    margin: 0;
    padding-left: 1rem;
    list-style: disc;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.collection-card button {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Build PC Configurator */
.build-pc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.build-pc-form {
    display: grid;
    gap: 1.5rem;
}

.build-section {
    display: grid;
    gap: 1rem;
}

.build-section h3 {
    font-weight: 700;
    color: var(--text);
    margin: 0;
    font-size: 1rem;
}

.build-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.build-card {
    padding: 0.75rem;
    background: rgba(51, 65, 85, 0.4);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 200ms ease;
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.build-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(51, 65, 85, 0.6);
    transform: translateY(-1px);
}

.build-card.selected {
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.1);
}

.build-card img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.build-card-info {
    display: grid;
    gap: 0.25rem;
}

.build-card-info h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.build-card-info .price {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.8rem;
}

.invoice-upload {
    display: grid;
    gap: 0.75rem;
}

.invoice-uploaded {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-size: 0.9rem;
}

.remove-invoice {
    background: none;
    border: none;
    color: #10b981;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: all 200ms ease;
}

.remove-invoice:hover {
    color: #ef4444;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-select {
    padding: 0.85rem 1rem;
    background: rgba(51, 65, 85, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 200ms ease;
}

.form-select:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(51, 65, 85, 0.6);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(51, 65, 85, 0.8);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.build-pc-form button {
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 200ms ease;
    font-size: 0.95rem;
}

.build-pc-form .primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.build-pc-form .primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.4);
}

.build-pc-form .secondary {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.build-pc-form .secondary:hover {
    background: rgba(148, 163, 184, 0.3);
    border-color: rgba(148, 163, 184, 0.5);
}

.build-pc-summary {
    background: rgba(51, 65, 85, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 10rem;
}

.build-pc-summary h2 {
    margin: 0 0 1.5rem;
    font-size: 1.2rem;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary), #06d6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.summary-item-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.summary-item-price {
    color: var(--primary-light);
    font-weight: 700;
}

.summary-total {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: right;
    font-size: 1.1rem;
    color: var(--text);
}

.summary-total span {
    color: var(--primary-light);
    margin-left: 0.5rem;
}

.invoice-summary {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.invoice-summary h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.invoice-summary p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.8);
    word-break: break-word;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.user-table th,
.user-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.user-table th {
    color: var(--text);
    font-weight: 700;
    background: rgba(51, 65, 85, 0.3);
}

.badge {
    display: inline-flex;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge.admin {
    background: rgba(6, 182, 212, 0.2);
    color: var(--primary-light);
}

.badge.user {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
}

.cart-empty p {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
}

.cart-items-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(51, 65, 85, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    gap: 1.5rem;
    transition: all 200ms ease;
}

.cart-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(51, 65, 85, 0.6);
}

.cart-item-info {
    flex: 1;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.cart-item-info .price {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.delete-item {
    background: rgba(239, 68, 68, 0.8);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 200ms ease;
    font-weight: 700;
    min-width: 40px;
}

.delete-item:hover {
    background: var(--danger);
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.cart-summary p {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
}

.cart-summary p strong {
    color: var(--primary-light);
    font-size: 1.4rem;
}

.danger-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.danger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.4);
}

.footer-note {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-note strong {
    color: var(--primary-light);
}

/* Profile Styles */
.profile-container {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-header {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding: 2.5rem;
}

.profile-photo-section {
    flex-shrink: 0;
}

.profile-photo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    background: rgba(51, 65, 85, 0.6);
    border: 2px solid var(--border);
    display: block;
}

.photo-upload-label {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 200ms ease;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.photo-upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

.upload-icon {
    font-size: 1rem;
}

.upload-text {
    display: none;
}

@media (min-width: 600px) {
    .upload-text {
        display: inline;
    }
}

.profile-info-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.profile-info-main h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-email {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.profile-role-badge {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.profile-card h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.info-group {
    display: grid;
    gap: 0.5rem;
}

.info-group label {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.info-group p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

.status-active {
    color: var(--success) !important;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(51, 65, 85, 0.4);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

#logout-profile {
    margin-top: 1rem;
}

@media (max-width: 920px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-info-main h2 {
        font-size: 1.5rem;
    }

    .profile-role-badge {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .profile-header {
        padding: 1.5rem;
    }

    .profile-photo-wrapper {
        width: 120px;
        height: 120px;
    }

    .profile-info-main h2 {
        font-size: 1.3rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 920px) {
    .register-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .register-copy {
        order: 2;
    }

    .register-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem 2rem;
    }

    nav {
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-links button {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .nav-right {
        margin-left: auto;
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .profile-icon-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        border-radius: 50%;
        border: 2px solid transparent;
        background: rgba(255, 255, 255, 0.08);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .profile-icon-button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }

    .profile-icon-button:hover {
        transform: scale(1.05);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .main-title {
        font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .card {
        padding: 1.5rem;
    }

    .form-grid {
        gap: 1rem;
    }

    .form-grid input,
    .form-grid button {
        padding: 0.9rem 1rem;
    }

    .build-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .brand {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-links button {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }

    .main-title {
        font-size: clamp(1.25rem, 2vw, 2rem);
        margin: 1rem 0 0.75rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .feature-list {
        gap: 1rem;
    }

    .feature-list li {
        padding-left: 1.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions button {
        width: 100%;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-actions {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .build-pc-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .build-pc-summary {
        position: static;
    }

    .build-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .build-card {
        padding: 0.75rem;
    }

    .build-card img {
        height: 80px;
    }

    .build-card-info h4 {
        font-size: 0.75rem;
    }
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.25rem;
    background: linear-gradient(135deg, var(--primary), #06d6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    background: none;
    border: none;
    color: rgba(226, 232, 240, 0.8);
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-size: 0.95rem;
    transition: all 200ms ease;
    text-decoration: none;
    font-family: inherit;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(6px);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: rgba(226, 232, 240, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.1);
    transition: all 200ms ease;
}

.social-link:hover {
    background: rgba(6, 182, 212, 0.2);
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(6, 182, 212, 0.1);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(226, 232, 240, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-left,
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom-right {
    justify-content: flex-end;
}

.footer-email,
.footer-email-inline,
.footer-phone {
    color: rgba(226, 232, 240, 0.8);
    text-decoration: none;
    transition: color 200ms ease;
}

.footer-email:hover,
.footer-email-inline:hover,
.footer-phone:hover {
    color: var(--primary);
}

.footer-bottom p {
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-contact .footer-link {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-right {
        justify-content: center;
    }
}
