:root {
    --gc-primary: #6d28d9;
    --gc-primary-dark: #5b21b6;
    --gc-primary-light: #8b5cf6;
    --gc-sidebar: #1a1625;
    --gc-sidebar-hover: #2d2640;
    --gc-bg: #f4f6fb;
    --gc-card: #ffffff;
    --gc-text: #1f2937;
    --gc-muted: #6b7280;
    --gc-success: #10b981;
    --gc-danger: #ef4444;
    --gc-warning: #f59e0b;
    --gc-info: #3b82f6;
    --sidebar-width: 260px;
    --header-height: 64px;
}

* { box-sizing: border-box; }

body.giftcode-admin {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--gc-bg);
    margin: 0;
    color: var(--gc-text);
}

.gc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--gc-sidebar);
    color: #e5e7eb;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.gc-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.gc-brand h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.gc-brand span {
    color: var(--gc-primary-light);
}

.gc-nav { padding: .75rem 0; flex: 1; }

.gc-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.25rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: .9rem;
    transition: .2s;
}

.gc-nav a:hover,
.gc-nav a.active {
    background: var(--gc-sidebar-hover);
    color: #fff;
}

.gc-nav a.active {
    border-left: 3px solid var(--gc-primary-light);
    padding-left: calc(1.25rem - 3px);
}

.gc-nav i { width: 20px; text-align: center; }

.gc-nav-section {
    padding: .5rem 1.25rem .25rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
}

.gc-nav-toggle {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.gc-nav-toggle i { transition: transform .2s; }
.gc-nav-toggle.collapsed i { transform: rotate(-90deg); }

.gc-nav-links { display: block; }

.gc-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left .2s ease;
}

body.gc-sidebar-collapsed .gc-sidebar {
    width: 84px;
}

body.gc-sidebar-collapsed .gc-brand h1 span,
body.gc-sidebar-collapsed .gc-brand h1:not(i),
body.gc-sidebar-collapsed .gc-nav-section,
body.gc-sidebar-collapsed .gc-nav a {
    font-size: 0;
}

body.gc-sidebar-collapsed .gc-nav a i,
body.gc-sidebar-collapsed .gc-brand i {
    font-size: 1rem;
}

body.gc-sidebar-collapsed .gc-main {
    margin-left: 84px;
}

.gc-header {
    height: var(--header-height);
    background: var(--gc-card);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.gc-search {
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
}

.gc-search input {
    width: 100%;
    padding: .5rem 1rem .5rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.gc-content { padding: 1.5rem; }

.gc-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

.gc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gc-stat-card {
    background: var(--gc-card);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #f3f4f6;
}

.gc-stat-card.highlight {
    background: linear-gradient(135deg, var(--gc-primary), var(--gc-primary-dark));
    color: #fff;
}

.gc-stat-card .label {
    font-size: .8rem;
    color: var(--gc-muted);
    margin-bottom: .35rem;
}

.gc-stat-card.highlight .label { color: rgba(255,255,255,.85); }

.gc-stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.gc-card {
    background: var(--gc-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.gc-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gc-card-body { padding: 1.25rem; }

.gc-table { width: 100%; border-collapse: collapse; }

.gc-table th {
    text-align: left;
    padding: .75rem 1rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--gc-muted);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.gc-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: .9rem;
}

.gc-badge {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.gc-badge.success { background: #d1fae5; color: #065f46; }
.gc-badge.danger { background: #fee2e2; color: #991b1b; }
.gc-badge.warning { background: #fef3c7; color: #92400e; }
.gc-badge.info { background: #dbeafe; color: #1e40af; }
.gc-badge.secondary { background: #f3f4f6; color: #374151; }

.btn-gc-primary {
    background: var(--gc-primary);
    color: #fff;
    border: none;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.btn-gc-primary:hover { background: var(--gc-primary-dark); color: #fff; }

.btn-gc-sm {
    padding: .35rem .65rem;
    font-size: .8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-success-sm { background: var(--gc-success); color: #fff; }
.btn-danger-sm { background: var(--gc-danger); color: #fff; }
.btn-info-sm { background: var(--gc-info); color: #fff; }

.gc-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.gc-tabs a {
    padding: .6rem 1rem;
    text-decoration: none;
    color: var(--gc-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.gc-tabs a.active {
    color: var(--gc-primary);
    border-bottom-color: var(--gc-primary);
    font-weight: 600;
}

.alert-gc {
    padding: .75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-gc.success { background: #d1fae5; color: #065f46; }
.alert-gc.danger { background: #fee2e2; color: #991b1b; }

@media (max-width: 768px) {
    .gc-sidebar { transform: translateX(-100%); }
    .gc-main { margin-left: 0; }
}
