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

:root {
    --primary: #00D9FF;
    --primary-dark: #00B8D4;
    --secondary: #A855F7;
    --accent: #FF6B35;
    --text-dark: #ffffff;
    --text-gray: #b4b4b4;
    --text-light: #808080;
    --bg-dark: #0a0a0f;
    --bg-card: #1a1a2e;
    --bg-glass: rgba(26, 26, 46, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 217, 255, 0.15);
    --shadow-lg: 0 20px 60px rgba(168, 85, 247, 0.3);
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #A855F7 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 217, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    height: 40px;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.15) 0%, transparent 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    position: relative;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

.nav-item i {
    font-size: 18px;
    width: 20px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-left h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-gray);
    font-size: 16px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-plan-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s;
}

.step.active .step-circle {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 25px rgba(0, 217, 255, 0.5);
}

.step span {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.step.active span {
    color: var(--primary);
    font-weight: 600;
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--border);
}

.qr-types-section {
    margin-bottom: 60px;
}

.section-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.qr-types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.qr-type-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.qr-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.qr-type-card:hover::before {
    opacity: 0.1;
}

.qr-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
}

.qr-type-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.card-icon.green {
    background: var(--gradient-primary);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.3);
}

.qr-type-card:hover .card-icon {
    transform: rotateY(360deg);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5);
}

.card-icon {
    transition: all 0.6s;
}

.card-icon.blue {
    background: linear-gradient(135deg, #1877F2 0%, #42B0FF 100%);
}

.card-icon.pink {
    background: linear-gradient(135deg, #E1306C 0%, #FD1D1D 50%, #F77737 100%);
}

.card-icon.orange {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.card-icon.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
}

.card-icon.red {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
}

.card-icon i {
    font-size: 26px;
    color: white;
}

.qr-type-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.qr-type-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

.my-qr-codes {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.2);
}

.qr-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qr-codes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.qr-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.qr-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.qr-info-main {
    flex: 1;
}

.qr-info-main h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.qr-info-main p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 4px 0;
}

.qr-stats {
    display: flex;
    gap: 20px;
}

.qr-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qr-stats .stat i {
    color: var(--primary);
    font-size: 18px;
}

.qr-stats .stat span {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.qr-stats .stat small {
    font-size: 11px;
    color: var(--text-gray);
}

.qr-actions {
    display: flex;
    gap: 8px;
}

.btn-delete {
    color: var(--accent) !important;
    border-color: rgba(255, 107, 53, 0.3) !important;
}

.btn-delete:hover {
    background: rgba(255, 107, 53, 0.2) !important;
    border-color: var(--accent) !important;
}

.qr-preview-small {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-mini {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.qr-info {
    flex: 1;
}

.qr-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.qr-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-gray);
}

.qr-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qr-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-icon-small:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
}

@media (max-width: 1400px) {
    .qr-types-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .qr-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header {
        padding: 20px 10px;
    }
    
    .sidebar-logo {
        height: 30px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px 10px;
    }
    
    .main-content {
        margin-left: 70px;
        padding: 20px;
    }
    
    .qr-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-progress {
        flex-direction: column;
    }
    
    .step-line {
        width: 2px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .qr-types-grid {
        grid-template-columns: 1fr;
    }
}

/* Edit Modal */
.edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.edit-modal {
    background: var(--card-bg, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.edit-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.edit-modal-close:hover {
    color: #fff;
}

.edit-modal-body {
    padding: 24px;
}

.edit-modal-body .form-group {
    margin-bottom: 16px;
}

.edit-modal-body label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.edit-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.edit-input:focus {
    outline: none;
    border-color: var(--primary, #00d9ff);
}

.edit-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-modal-footer .btn-secondary {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.edit-modal-footer .btn-primary {
    padding: 10px 20px;
    background: var(--gradient-primary, linear-gradient(135deg, #00d9ff, #a855f7));
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* ============ UPGRADE PLAN SECTION ============ */

.upgrade-section {
    margin: 30px 0;
    padding: 30px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.plan-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px 24px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.plan-card:hover {
    transform: translateY(-4px);
}

.plan-card.featured {
    border-color: #8b5cf6;
    background: rgba(139,92,246,0.08);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-header h3 {
    font-size: 22px;
    color: #fff;
    margin: 0 0 8px;
}

.plan-price {
    font-size: 36px;
    font-weight: 700;
    color: #00d9ff;
}

.plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.plan-features li {
    padding: 8px 0;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i.fa-check {
    color: #10b981;
}

.plan-features li i.fa-times {
    color: rgba(255,255,255,0.25);
}

.plan-features li.disabled {
    color: rgba(255,255,255,0.3);
}

.btn-plan {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-plan.current {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    cursor: default;
}

.btn-plan.upgrade {
    background: linear-gradient(135deg, #00d9ff, #a855f7);
    color: #fff;
}

.btn-plan.upgrade:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-plan.manage {
    background: rgba(139,92,246,0.2);
    color: #a855f7;
    border: 1px solid rgba(139,92,246,0.3);
}

.manage-sub {
    text-align: center;
    margin-top: 20px;
}

.manage-sub a {
    color: #a855f7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.manage-sub a:hover {
    color: #c084fc;
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
