/* ============================================================
   赴德Skill商店 - 主样式表
   ============================================================ */

:root {
    --color-primary: #1e3a5f;
    --color-primary-light: #2563eb;
    --color-primary-dark: #0f1e32;
    --color-accent: #e6b800;
    --color-accent-red: #c8102e;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --color-success: #059669;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px -5px rgba(0,0,0,0.12), 0 4px 10px -4px rgba(0,0,0,0.08);
    --max-width: 1200px;
    --header-height: 64px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Topbar === */
.topbar {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 6px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-text i { color: var(--color-accent); margin-right: 4px; }
.topbar-right { display: flex; gap: 16px; }
.topbar-right a { color: rgba(255,255,255,0.85); }
.topbar-right a:hover { color: #fff; }

/* === Header === */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
}
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.logo-accent { color: var(--color-accent); }

.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}
.nav-link i { margin-right: 4px; font-size: 13px; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-btn {
    position: relative;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 18px;
    transition: all var(--transition);
}
.cart-btn:hover { background: var(--color-bg); color: var(--color-primary); }
.cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--color-accent-red);
    color: #fff;
    font-size: 11px;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-text);
    padding: 8px;
}

/* === Flash Message === */
.flash-message {
    padding: 12px 0;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}
.flash-success { background: #ecfdf5; color: var(--color-success); }
.flash-error { background: #fef2f2; color: var(--color-danger); }
.flash-info { background: #eff6ff; color: var(--color-primary-light); }

/* === Main Content === */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
    min-height: auto;
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #2a4a7f 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(230,184,0,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}
.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero h1 .highlight { color: var(--color-accent); }
.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}
.hero-stat .num {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent);
}
.hero-stat .label {
    font-size: 14px;
    opacity: 0.7;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: var(--font);
}
.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}
.btn-primary:hover {
    background: #ffd633;
    color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}
.btn-blue {
    background: var(--color-primary-light);
    color: #fff;
}
.btn-blue:hover { background: var(--color-primary); color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-ghost {
    background: var(--color-bg);
    color: var(--color-text);
}
.btn-ghost:hover { background: var(--color-border); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* === Section === */
.section {
    padding: 64px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* === Category Cards === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.category-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-card-banner {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.category-card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
}
.category-card-body {
    padding: 24px;
}
.category-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.category-card-body p {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.7;
}
.category-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}
.category-card-link i { transition: transform var(--transition); }
.category-card:hover .category-card-link i { transform: translateX(4px); }

/* === Skill Cards === */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.skill-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.skill-card-header {
    padding: 20px;
    position: relative;
}
.skill-card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.badge-hot { background: #fef2f2; color: var(--color-danger); }
.badge-new { background: #ecfdf5; color: var(--color-success); }
.badge-sale { background: #fefce8; color: var(--color-warning); }

.skill-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}
.skill-card-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.skill-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.skill-feature-tag {
    background: var(--color-bg);
    color: var(--color-text-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}
.skill-card-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.skill-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.skill-price .current {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-accent-red);
}
.skill-price .original {
    font-size: 14px;
    color: var(--color-text-light);
    text-decoration: line-through;
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #fff;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(230,184,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header-content {
    position: relative;
    z-index: 1;
}
.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-header h1 i { color: var(--color-accent); }
.page-header p {
    opacity: 0.85;
    font-size: 16px;
    max-width: 700px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.7;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }

/* === Skill Detail === */
.skill-detail {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    padding: 32px 0;
}
.skill-detail-main h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--color-primary);
}
.skill-detail-main h2:first-child { margin-top: 0; }
.skill-detail-main p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
}
.skill-detail-main ul {
    list-style: none;
    margin-bottom: 16px;
}
.skill-detail-main ul li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text);
}
.skill-detail-main ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-success);
    position: absolute;
    left: 0;
}

.skill-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    align-self: start;
}
.skill-purchase-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.skill-purchase-price {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
    border-bottom: 1px solid var(--color-border);
}
.skill-purchase-price .current {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-accent-red);
}
.skill-purchase-price .original {
    font-size: 18px;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-left: 8px;
}
.skill-purchase-price .discount {
    display: inline-block;
    background: var(--color-danger);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
    vertical-align: middle;
}
.skill-purchase-body {
    padding: 20px 24px;
}
.skill-purchase-body ul {
    list-style: none;
    margin-bottom: 20px;
}
.skill-purchase-body ul li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.skill-purchase-body ul li i { color: var(--color-success); }
.skill-purchase-actions {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === Resources === */
.resource-section {
    margin-bottom: 48px;
}
.resource-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}
.resource-section-title .icon-box {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.resource-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all var(--transition);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.resource-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.resource-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}
.resource-card-body h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.resource-card-body p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}
.resource-card-body .ext-link {
    font-size: 12px;
    color: var(--color-primary-light);
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* === Forms === */
.form-card {
    max-width: 440px;
    margin: 40px auto;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.form-card-header {
    padding: 32px 32px 0;
    text-align: center;
}
.form-card-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.form-card-header p {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 24px;
}
.form-card-body {
    padding: 24px 32px 32px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    transition: border-color var(--transition);
    background: var(--color-surface);
    color: var(--color-text);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-primary-light);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 4px;
}
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--color-danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}
.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--color-text-light);
}

/* === Footer === */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
    border-top: 4px solid var(--color-accent);
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-col {}
.footer-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    opacity: 0.7;
}
.footer-contact p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 4px;
}
.footer-contact i { margin-right: 6px; color: var(--color-accent); }
.footer-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--color-accent);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* === User Dashboard === */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 32px 0;
    min-height: 60vh;
}
.dashboard-sidebar {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}
.dashboard-user {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
}
.dashboard-user .avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 12px;
}
.dashboard-user .username { font-weight: 700; font-size: 16px; }
.dashboard-user .email { font-size: 13px; opacity: 0.7; }
.dashboard-nav { padding: 8px; }
.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}
.dashboard-nav a:hover, .dashboard-nav a.active {
    background: var(--color-bg);
    color: var(--color-primary);
}
.dashboard-nav a i { width: 18px; text-align: center; }

.dashboard-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-primary);
}
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--color-text); }
.stat-card .stat-label { font-size: 13px; color: var(--color-text-light); }

/* === Table === */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.data-table th {
    background: var(--color-bg);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-border);
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0,0,0,0.02); }

/* === Status Badges === */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending { background: #fef3c7; color: var(--color-warning); }
.status-paid { background: #d1fae5; color: var(--color-success); }
.status-cancelled { background: #fee2e2; color: var(--color-danger); }
.status-refunded { background: #ede9fe; color: #7c3aed; }

/* === Cart === */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    padding: 32px 0;
}
.cart-items-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.cart-item-info p { font-size: 13px; color: var(--color-text-light); }
.cart-item-price { font-size: 18px; font-weight: 700; color: var(--color-accent-red); }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.cart-item-remove:hover { background: #fee2e2; color: var(--color-danger); }
.cart-summary {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}
.cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text-light);
}
.cart-summary-total {
    border-top: 2px solid var(--color-border);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
}
.cart-summary-total .amount { color: var(--color-accent-red); }

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 64px;
    color: var(--color-border);
    margin-bottom: 16px;
}
.empty-state h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--color-text-light); }
.empty-state p { font-size: 14px; color: var(--color-text-light); margin-bottom: 24px; }

/* === Admin === */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 0;
}
.admin-sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-header h3 { font-size: 18px; font-weight: 700; }
.admin-sidebar-nav { padding: 12px 0; }
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all var(--transition);
}
.admin-sidebar-nav a:hover, .admin-sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.admin-sidebar-nav a i { width: 20px; text-align: center; }
.admin-main {
    background: var(--color-bg);
    padding: 24px 32px;
}
.admin-main h1 { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--color-primary); }

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text);
}
.pagination a:hover { border-color: var(--color-primary-light); color: var(--color-primary-light); }
.pagination .current {
    background: var(--color-primary-light);
    color: #fff;
    border-color: var(--color-primary-light);
}

/* === Responsive === */
@media (max-width: 968px) {
    .skill-detail { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        z-index: 99;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-link { width: 100%; padding: 12px 16px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 20px; }
    .hero-stat .num { font-size: 24px; }
    .category-grid { grid-template-columns: 1fr; }
    .skill-grid { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .section-title { font-size: 26px; }
    .container { padding: 0 16px; }
    .topbar-text { display: none; }
    .admin-main { padding: 16px; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 8px 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { padding: 16px 0; }
}

