 :root {
            --primary-color: rgba(175, 82, 222, 1);
            --primary-light: rgba(175, 82, 222, 0.1);
            --primary-medium: rgba(175, 82, 222, 0.8);
            --secondary-color: #6c5ce7;
            --text-primary: #2d3436;
            --text-secondary: #636e72;
            --background-primary: #f8f9fa;
            --background-secondary: #ffffff;
            --border-color: #e9ecef;
            --success-color: #00b894;
            --danger-color: #e17055;
            --warning-color: #fdcb6e;
            --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
            --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
            --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.1);
            --radius-small: 8px;
            --radius-medium: 12px;
            --radius-large: 16px;
        }

        .page-wrapper {
            min-height: 100vh;
            background: linear-gradient(135deg, var(--primary-light) 0%, #f8f9fa 100%);
            padding: 2rem 1rem;
            font-family: 'Inter', sans-serif;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: var(--background-secondary);
            border-radius: var(--radius-large);
            box-shadow: var(--shadow-heavy);
            overflow: hidden;
            position: relative;
        }

        .header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            padding: 3rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transform: rotate(45deg);
        }

        .header::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
        }

        .header h2 {
            color: white;
            font-size: 2.5rem;
            font-weight: 700;
            margin: 0 0 0.5rem 0;
            position: relative;
            z-index: 1;
        }

        .header p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            margin: 0;
            position: relative;
            z-index: 1;
        }

        .content {
            padding: 2.5rem;
        }

        .action-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.875rem 1.5rem;
            border: none;
            border-radius: var(--radius-small);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0, 1);
            text-decoration: none;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(175, 82, 222, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(175, 82, 222, 0.4);
        }

        .btn-success {
            background: linear-gradient(135deg, var(--success-color) 0%, #00a085 100%);
            color: white;
        }

        .btn-danger {
            background: linear-gradient(135deg, var(--danger-color) 0%, #d63031 100%);
            color: white;
        }

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

        .btn:disabled {
            background: #ddd;
            color: #999;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .addresses-grid {
            display: grid;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .address-card {
            background: var(--background-secondary);
            border: 2px solid var(--border-color);
            border-radius: var(--radius-medium);
            padding: 1.5rem;
            transition: all 0.3s ease;
            position: relative;
            cursor: pointer;
        }

        .address-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-medium);
            border-color: var(--primary-color);
        }

        .address-card.selected {
            border-color: var(--primary-color);
            background: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(175, 82, 222, 0.1);
        }

        .address-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .address-selector {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .radio-custom {
            position: relative;
            width: 20px;
            height: 20px;
        }

        .radio-custom input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            margin: 0;
            cursor: pointer;
        }

        .radio-custom::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-color);
            border-radius: 50%;
            background: white;
            transition: all 0.3s ease;
        }

        .radio-custom::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 8px;
            height: 8px;
            background: var(--primary-color);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 0.3s ease;
        }

        .radio-custom input[type="radio"]:checked + .radio-custom::before,
        .address-card.selected .radio-custom::before {
            border-color: var(--primary-color);
        }

        .radio-custom input[type="radio"]:checked + .radio-custom::after,
        .address-card.selected .radio-custom::after {
            transform: translate(-50%, -50%) scale(1);
        }

        .address-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 1.1rem;
        }

        .address-actions {
            display: flex;
            gap: 0.5rem;
        }

        .btn-small {
            padding: 0.5rem 0.75rem;
            font-size: 0.875rem;
            border-radius: 6px;
        }

        .address-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .detail-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .detail-item i {
            color: var(--primary-color);
            width: 16px;
        }

        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-secondary);
        }

        .empty-state i {
            font-size: 4rem;
            color: var(--border-color);
            margin-bottom: 1rem;
        }

        .empty-state h3 {
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 1rem;
        }

        .popup-content {
            background: var(--background-secondary);
            border-radius: var(--radius-large);
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-heavy);
            animation: slideUp 0.3s ease;
        }

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

        .popup-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            padding: 1.5rem;
            color: white;
            text-align: center;
        }

        .popup-header h3 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .popup-body {
            padding: 2rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--text-primary);
        }

        .form-input {
            width: 100%;
            padding: 0.875rem;
            border: 2px solid var(--border-color);
            border-radius: var(--radius-small);
            font-size: 1rem;
            transition: all 0.3s ease;
            background: var(--background-secondary);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(175, 82, 222, 0.1);
        }

        .form-actions {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            margin-top: 2rem;
        }

        .payment-section {
            background: var(--primary-light);
            padding: 1.5rem;
            border-radius: var(--radius-medium);
            margin-top: 2rem;
            text-align: center;
        }

        .stats-bar {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            margin-bottom: 2rem;
            padding: 1rem;
            background: var(--background-primary);
            border-radius: var(--radius-medium);
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .stat-label {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin-top: 0.25rem;
        }

        @media (max-width: 768px) {
            .page-wrapper {
                padding: 1rem 0.5rem;
            }

            .header {
                padding: 2rem 1rem;
            }

            .header h2 {
                font-size: 2rem;
            }

            .content {
                padding: 1.5rem;
            }

            .action-bar {
                flex-direction: column;
                align-items: stretch;
            }

            .address-details {
                grid-template-columns: 1fr;
            }

            .stats-bar {
                flex-direction: column;
                gap: 1rem;
            }

            .form-actions {
                flex-direction: column;
            }
        }