:root {
    --primary: #4f6ef7;
    --primary-light: #6b8aff;
    --primary-dark: #3a56d4;
    --secondary: #a855f7;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #4f6ef7 0%, #a855f7 50%, #06b6d4 100%);
    --gradient-primary: linear-gradient(135deg, #4f6ef7 0%, #6b8aff 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #4f6ef7 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.2);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.uc-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.uc-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.uc-header-brand i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.uc-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uc-header-back {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.uc-header-back:hover {
    background: rgba(79,110,247,0.08);
    color: var(--primary);
}

.uc-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.uc-header-user:hover {
    background: rgba(79,110,247,0.08);
}

.uc-header-user i {
    color: var(--primary);
    font-size: 1.3rem;
}

/* ===== CONTAINER & LAYOUT ===== */
.uc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.uc-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.uc-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 96px;
}

.uc-sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226,232,240,0.5);
}

.uc-sidebar-profile {
    background: var(--gradient);
    padding: 36px 24px 28px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.uc-sidebar-profile::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: profileShimmer 8s ease-in-out infinite;
}

@keyframes profileShimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20%, 20%); }
}

.uc-sidebar-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.8rem;
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

.uc-sidebar-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.uc-sidebar-phone {
    font-size: 0.82rem;
    opacity: 0.75;
    position: relative;
    z-index: 1;
}

.uc-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.uc-nav-item:hover {
    background: rgba(79,110,247,0.04);
    color: var(--primary);
}

.uc-nav-item.active {
    border-left-color: var(--primary);
    background: rgba(79,110,247,0.06);
    color: var(--primary);
    font-weight: 600;
}

.uc-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.uc-nav-item.danger {
    color: var(--danger);
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.uc-nav-item.danger:hover {
    background: rgba(239,68,68,0.06);
}

.uc-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 16px;
}

.uc-nav-section-label {
    padding: 4px 20px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== MAIN CONTENT ===== */
.uc-main {
    flex: 1;
    min-width: 0;
}

/* ===== CARDS ===== */
.uc-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(226,232,240,0.5);
    transition: var(--transition);
}

.uc-card:hover {
    box-shadow: var(--shadow);
}

.uc-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.uc-card-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== STATS ===== */
.uc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.uc-stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226,232,240,0.5);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.uc-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 0 0 0 80px;
    opacity: 0.04;
    transition: var(--transition);
}

.uc-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.uc-stat-card:hover::after {
    opacity: 0.08;
    width: 100px;
    height: 100px;
}

.uc-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.uc-stat-icon.blue { background: var(--gradient-primary); color: white; }
.uc-stat-icon.yellow { background: var(--gradient-warm); color: white; }
.uc-stat-icon.green { background: var(--gradient-green); color: white; }
.uc-stat-icon.purple { background: linear-gradient(135deg, #a855f7, #6366f1); color: white; }

.uc-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.uc-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* ===== WELCOME BANNER ===== */
.uc-welcome {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.uc-welcome::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.uc-welcome::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.uc-welcome h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.uc-welcome p {
    font-size: 0.95rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

/* ===== FORMS ===== */
.uc-form-group {
    margin-bottom: 18px;
}

.uc-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.uc-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
    background: #fafbfc;
    color: var(--text);
}

.uc-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79,110,247,0.1);
    background: white;
}

.uc-form-input::placeholder {
    color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.uc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.uc-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(79,110,247,0.3);
}

.uc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,110,247,0.4);
}

.uc-btn-primary:active {
    transform: translateY(0);
}

.uc-btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.uc-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79,110,247,0.04);
}

.uc-btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 14px rgba(239,68,68,0.3);
}

/* ===== TABLE ===== */
.uc-table {
    width: 100%;
    border-collapse: collapse;
}

.uc-table td {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.uc-table tr:last-child td {
    border-bottom: none;
}

.uc-table td:first-child {
    color: var(--text-muted);
    width: 120px;
    font-weight: 500;
}

/* ===== CLAIM CARD ===== */
.uc-claim-card {
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fb 100%);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(226,232,240,0.6);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.uc-claim-card:hover {
    box-shadow: var(--shadow-sm);
    border-left-color: var(--secondary);
}

.uc-claim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.uc-claim-header strong {
    font-size: 1rem;
}

/* ===== BADGES ===== */
.uc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.uc-badge-success { background: rgba(16,185,129,0.1); color: var(--success); }
.uc-badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.uc-badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); }

/* ===== EMPTY STATE ===== */
.uc-empty {
    text-align: center;
    padding: 56px 20px;
}

.uc-empty i {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.uc-empty h5 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.uc-empty p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ===== QUICK ACTIONS ===== */
.uc-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.uc-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.uc-quick-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: rgba(79,110,247,0.02);
}

.uc-quick-action i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* ===== TOAST ===== */
.uc-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 28px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uc-toast.success {
    border-left: 4px solid var(--success);
    color: var(--success);
}

.uc-toast.error {
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

@keyframes toastIn {
    from { transform: translateX(120%) scale(0.8); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

/* ===== LOGIN PAGE ===== */
.uc-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.uc-login-page::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: loginFloat1 12s ease-in-out infinite;
}

.uc-login-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: loginFloat2 15s ease-in-out infinite;
}

@keyframes loginFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.1); }
}

@keyframes loginFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -40px) scale(1.05); }
}

.uc-login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    width: 440px;
    max-width: 92vw;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.3);
}

.uc-login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.uc-login-logo i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uc-login-title {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.uc-login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.uc-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    margin-top: 48px;
}

.uc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.uc-footer-inner p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.uc-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.uc-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 6px;
}

.uc-footer-links a:hover {
    color: var(--primary);
    background: rgba(79,110,247,0.06);
}

/* ===== SECURITY SECTION ===== */
.uc-security-item {
    padding: 20px;
    background: #fafbfc;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid rgba(226,232,240,0.5);
}

.uc-security-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.uc-security-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .uc-layout {
        flex-direction: column;
    }
    .uc-sidebar {
        width: 100%;
        position: static;
    }
    .uc-stats {
        grid-template-columns: 1fr 1fr;
    }
    .uc-quick-actions {
        grid-template-columns: 1fr;
    }
    .uc-container {
        padding: 16px 12px;
    }
    .uc-welcome {
        padding: 24px 20px;
    }
    .uc-welcome h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .uc-stats {
        grid-template-columns: 1fr;
    }
    .uc-header {
        padding: 0 16px;
    }
    .uc-login-card {
        padding: 32px 24px;
    }
    .uc-header-back span {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.uc-fade-in {
    animation: fadeInUp 0.5s ease-out;
}

.uc-fade-in-delay {
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.uc-fade-in-delay2 {
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

/* ===== WALLET ===== */
.uc-wallet-balance {
    text-align: center;
    padding: 30px 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: #fff;
    margin-bottom: 20px;
}

.uc-wallet-amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.uc-wallet-label {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 4px;
}

.uc-wallet-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.uc-wallet-stat {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg);
    border-radius: var(--radius);
}

.uc-wallet-stat-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.uc-wallet-stat-lbl {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== DEPOSIT ===== */
.uc-deposit-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.uc-deposit-amount {
    padding: 14px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.uc-deposit-amount:hover {
    border-color: var(--primary-light);
}

.uc-deposit-amount.active {
    border-color: var(--primary);
    background: rgba(79,110,247,0.05);
    color: var(--primary);
}

.uc-channel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.uc-channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.uc-channel-item:hover {
    border-color: var(--primary-light);
}

.uc-channel-item.active {
    border-color: var(--primary);
    background: rgba(79,110,247,0.03);
}

.uc-channel-check {
    margin-left: auto;
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.uc-channel-item.active .uc-channel-check {
    opacity: 1;
}

@media (max-width: 640px) {
    .uc-wallet-amount {
        font-size: 2rem;
    }
    .uc-wallet-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .uc-deposit-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== CLAIM ===== */
.uc-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.uc-upload-area:hover {
    border-color: var(--primary-light);
    background: rgba(79,110,247,0.02);
}

.uc-claim-form {
    padding-top: 8px;
}

/* ===== TEMPLATE STORE ===== */
.uc-template-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uc-template-type {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.uc-template-type-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg);
    font-weight: 600;
}

.uc-template-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.uc-template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px;
}

.uc-template-item {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.uc-template-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.uc-template-preview {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 10px;
}

.uc-template-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uc-template-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-template-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.uc-template-more {
    border-style: dashed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.uc-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .uc-template-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
