﻿        /* ====== Reference design — scoped to licenseDetails only (NOT main page) ====== */
        #licenseDetails {
            background: linear-gradient(135deg, rgba(22, 28, 45, 0.95) 0%, rgba(15, 20, 32, 0.98) 100%) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.55) !important;
            border-radius: 20px !important;
            padding: 24px !important;
        }

        #licenseDetails .header {
            text-align: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        #licenseDetails .header h2 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-top: 12px;
            color: var(--white);
        }

        /* Glass cards (inside licenseDetails only) */
        #licenseDetails .glass-card {
            background: linear-gradient(135deg, rgba(22, 28, 45, 0.75) 0%, rgba(15, 20, 32, 0.85) 100%);
            backdrop-filter: blur(24px) saturate(190%);
            -webkit-backdrop-filter: blur(24px) saturate(190%);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 20px;
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.55);
            overflow: hidden;
        }

        #licenseDetails .card-header {
            padding: 1.2rem 1.4rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        #licenseDetails .card-title-group {
            display: flex;
            align-items: center;
            gap: 0.85rem;
        }

        #licenseDetails .icon-avatar {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        #licenseDetails .icon-cyan {
            background: rgba(0, 242, 254, 0.12);
            color: #00F2FE;
            border: 1px solid rgba(0, 242, 254, 0.25);
        }

        #licenseDetails .icon-pink {
            background: rgba(255, 31, 94, 0.12);
            color: #FF1F5E;
            border: 1px solid rgba(255, 31, 94, 0.25);
        }

        #licenseDetails .icon-purple {
            background: rgba(139, 92, 246, 0.12);
            color: #8B5CF6;
            border: 1px solid rgba(139, 92, 246, 0.25);
        }

        #licenseDetails .icon-emerald {
            background: rgba(16, 185, 129, 0.12);
            color: #10B981;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        #licenseDetails .card-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #FFFFFF;
            margin: 0;
        }

        #licenseDetails .card-desc {
            font-size: 0.82rem;
            color: #9CA3AF;
            margin: 0;
        }

        #licenseDetails .card-body {
            padding: 1.4rem;
        }

        /* Theme package box (theme cards inside downloads section) */
        #licenseDetails .theme-package-box {
            background: rgba(18, 24, 39, 0.65);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 1.1rem;
            margin-bottom: 1rem;
        }

        #licenseDetails .theme-box-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 0.85rem;
            margin-bottom: 0.85rem;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        #licenseDetails .theme-box-title {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            font-weight: 700;
            font-size: 1rem;
        }

        #licenseDetails .purchase-date-pill {
            font-size: 0.78rem;
            color: #9CA3AF;
            background: rgba(255, 255, 255, 0.05);
            padding: 0.25rem 0.7rem;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        /* Status badges (matches reference palette) */
        #licenseDetails .badge-expired {
            background: rgba(239, 68, 68, 0.15);
            color: #EF4444;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        #licenseDetails .badge-active {
            background: rgba(16, 185, 129, 0.15);
            color: #10B981;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        #licenseDetails .badge-addon {
            background: rgba(139, 92, 246, 0.15);
            color: #8B5CF6;
            border: 1px solid rgba(139, 92, 246, 0.3);
        }

        /* Form input styling (inside licenseDetails only) */
        #licenseDetails .form-control,
        #licenseDetails input[type="text"],
        #licenseDetails input[type="email"] {
            width: 100%;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #FFFFFF;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 0.92rem;
            outline: none;
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
        }

        #licenseDetails .form-control:focus,
        #licenseDetails input:focus {
            border-color: #00F2FE;
            box-shadow: 0 0 18px rgba(0, 242, 254, 0.35);
        }

        #licenseDetails .form-group label {
            display: block;
            font-size: 0.88rem;
            font-weight: 600;
            color: #E5E7EB;
            margin-bottom: 0.5rem;
        }

        #licenseDetails .form-group {
            margin-bottom: 1.1rem;
        }

        /* Download button (emerald gradient) */
        #licenseDetails .download-btn-small {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: linear-gradient(135deg, #34D399 0%, #059669 100%);
            color: #FFFFFF;
            border: none;
            font-weight: 600;
            font-size: 0.85rem;
            padding: 0.55rem 1.1rem;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 14px rgba(16, 185, 129, 0.3);
            transition: all 0.25s ease;
        }

        #licenseDetails .download-btn-small:hover {
            transform: translateY(-2px);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 6px 20px rgba(16, 185, 129, 0.5);
        }

        /* Primary CTA (Change Domain, Submit) inside licenseDetails */
        #licenseDetails .btn-primary-action {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            padding: 0.85rem 1.5rem;
            background: linear-gradient(135deg, #FF1F5E 0%, #FF0844 100%);
            color: #FFFFFF;
            font-weight: 700;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(255, 8, 68, 0.35);
            transition: all 0.3s ease;
        }

        #licenseDetails .btn-primary-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(255, 8, 68, 0.55);
        }

        /* Addons section: grid of cards */
        #licenseDetails .addons-section {
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        #licenseDetails .addons-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.1rem;
        }

        #licenseDetails .addon-card {
            background: rgba(18, 24, 39, 0.65);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 1.1rem;
            transition: border-color 0.25s ease, transform 0.25s ease;
        }

        #licenseDetails .addon-card:hover {
            border-color: rgba(139, 92, 246, 0.35);
            transform: translateY(-2px);
        }

        #licenseDetails .addon-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.85rem;
        }

        #licenseDetails .addon-title-wrap {
            display: flex;
            align-items: center;
            gap: 0.55rem;
        }

        #licenseDetails .addon-name {
            font-size: 1rem;
            font-weight: 700;
            color: #FFFFFF;
            margin: 0;
        }

        #licenseDetails .addon-detail-row {
            display: flex;
            gap: 0.4rem;
            font-size: 0.82rem;
            color: #9CA3AF;
            margin-bottom: 0.5rem;
        }

        #licenseDetails .addon-detail-label {
            font-weight: 600;
        }

        /* My Licenses section */
        #licenseDetails .my-licenses-section {
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        #licenseDetails .license-list-card {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            margin-bottom: 8px;
            transition: background 0.2s ease;
        }

        #licenseDetails .license-list-card:hover {
            background: rgba(255, 255, 255, 0.07);
        }

        #licenseDetails .license-list-card .license-key {
            font-family: 'Courier New', Courier, monospace;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.85);
            flex: 1 1 220px;
            word-break: break-all;
        }

        #licenseDetails .license-list-card .license-meta {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.65);
            flex: 2 1 360px;
        }

        #licenseDetails .license-list-card .license-meta strong {
            color: rgba(255, 255, 255, 0.9);
            font-weight: 600;
        }

        /* History list */
        #licenseDetails .history-item {
            padding: 0.7rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            font-size: 0.85rem;
        }

        /* Licenses table (only shown when 2+ licenses exist) */
        #licenseDetails .licenses-table-wrapper {
            overflow-x: auto;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        #licenseDetails .licenses-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.88rem;
            color: #E5E7EB;
        }

        #licenseDetails .licenses-table thead {
            background: rgba(255, 255, 255, 0.04);
        }

        #licenseDetails .licenses-table th {
            text-align: left;
            padding: 14px 18px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.55);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            white-space: nowrap;
        }

        #licenseDetails .licenses-table td {
            padding: 16px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            vertical-align: middle;
        }

        #licenseDetails .licenses-table tbody tr:last-child td {
            border-bottom: none;
        }

        #licenseDetails .licenses-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        #licenseDetails .licenses-table .cell-key {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.84rem;
            word-break: break-all;
            max-width: 260px;
        }

        #licenseDetails .licenses-table .key-icon {
            color: #FF1F5E;
            flex-shrink: 0;
            font-size: 0.9rem;
        }

        #licenseDetails .licenses-table .cell-theme {
            font-weight: 600;
            color: #FFFFFF;
        }

        #licenseDetails .licenses-table .cell-domain {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.75);
        }

        #licenseDetails .licenses-table .domain-icon {
            color: #9CA3AF;
            font-size: 0.85rem;
        }

        #licenseDetails .licenses-table .cell-date {
            color: rgba(255, 255, 255, 0.7);
            white-space: nowrap;
        }

        #licenseDetails .licenses-table .copy-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 0.95rem;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            color: #E5E7EB;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        #licenseDetails .licenses-table .copy-btn:hover {
            background: rgba(0, 242, 254, 0.1);
            border-color: rgba(0, 242, 254, 0.35);
            color: #00F2FE;
        }

        #licenseDetails .licenses-table .copy-btn.copied {
            background: rgba(16, 185, 129, 0.15);
            border-color: rgba(16, 185, 129, 0.4);
            color: #10B981;
        }

        #licenseDetails .history-date {
            color: #9CA3AF;
            font-size: 0.78rem;
            margin-bottom: 0.2rem;
        }

        #licenseDetails .history-change {
            color: #F3F4F6;
        }

        #licenseDetails .history-change strong {
            color: #00F2FE;
        }

        /* Licenses table (only shown when 2+ licenses exist) */
        #licenseDetails .licenses-table-wrapper {
            overflow-x: auto;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        #licenseDetails .licenses-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.88rem;
            color: #E5E7EB;
        }

        #licenseDetails .licenses-table thead {
            background: rgba(255, 255, 255, 0.04);
        }

        #licenseDetails .licenses-table th {
            text-align: left;
            padding: 14px 18px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.55);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            white-space: nowrap;
        }

        #licenseDetails .licenses-table td {
            padding: 16px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            vertical-align: middle;
        }

        #licenseDetails .licenses-table tbody tr:last-child td {
            border-bottom: none;
        }

        #licenseDetails .licenses-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        #licenseDetails .licenses-table .cell-key {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.84rem;
            word-break: break-all;
            max-width: 260px;
        }

        #licenseDetails .licenses-table .key-icon {
            color: #FF1F5E;
            flex-shrink: 0;
            font-size: 0.9rem;
        }

        #licenseDetails .licenses-table .cell-theme {
            font-weight: 600;
            color: #FFFFFF;
        }

        #licenseDetails .licenses-table .cell-domain {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.75);
        }

        #licenseDetails .licenses-table .domain-icon {
            color: #9CA3AF;
            font-size: 0.85rem;
        }

        #licenseDetails .licenses-table .cell-date {
            color: rgba(255, 255, 255, 0.7);
            white-space: nowrap;
        }

        #licenseDetails .licenses-table .copy-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 0.95rem;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            color: #E5E7EB;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        #licenseDetails .licenses-table .copy-btn:hover {
            background: rgba(0, 242, 254, 0.1);
            border-color: rgba(0, 242, 254, 0.35);
            color: #00F2FE;
        }

        #licenseDetails .licenses-table .copy-btn.copied {
            background: rgba(16, 185, 129, 0.15);
            border-color: rgba(16, 185, 129, 0.4);
            color: #10B981;
        }

        #licenseDetails .history-date {
            color: #9CA3AF;
            font-size: 0.78rem;
            margin-bottom: 0.2rem;
        }

        #licenseDetails .history-change {
            color: #F3F4F6;
        }

        #licenseDetails .history-change strong {
            color: #00F2FE;
        }


