        /* Reusing the styles from index.html */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background-color: #f9fafb;
            color: #1f2937;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            line-height: 1.5;
        }
        header {
            position: sticky; /* Make the header sticky */
            top: 0; /* Stick to the top of the viewport */
            width: 100%; /* Ensure it spans the full width */
            z-index: 100; /* Ensure it stays on top of other content */
            background-color: #f9fafb; /* Match body background to prevent content showing through */
            max-width: 1100px;
            margin: 0 auto;
            padding: 24px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo { font-size: 20px; font-weight: 700; color: #4f46e5; display: flex; align-items: center; gap: 8px; cursor: pointer; } /* Added cursor: pointer */
        .header-logo {
            height: 40px; /* Adjust as needed */
            width: auto;
        }
        .nav-right { display: flex; align-items: center; gap: 24px; }
        nav { display: flex; gap: 24px; }
        nav a { color: #6b7280; text-decoration: none; font-size: 14px; transition: color 0.2s; }
        nav a:hover { color: #111827; }
        /* Owner Configuration Styles */
        .group-management-section {
            max-width: 1100px;
            width: 100%;
            margin: 0 auto;
            padding: 40px 20px;
            border-top: 1px solid #e5e7eb;
        }
        .token-display-area {
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 32px;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
        }
        .token-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .token-header h3 {
            font-size: 18px;
            font-weight: 600;
            color: #111827;
            margin: 0;
        }
        .token-actions {
            display: flex;
            gap: 8px;
        }
        .token-btn {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid #d1d5db;
            background-color: #ffffff;
            color: #374151;
        }
        .token-btn:hover {
            background-color: #f9fafb;
            border-color: #9ca3af;
        }
        .token-btn:active {
            transform: scale(0.98);
        }
        .token-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .token-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background-color: #f9fafb;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
        }
        .token-label {
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            min-width: 120px;
        }
        .token-value {
            font-size: 14px;
            color: #4f46e5;
            font-family: monospace;
            flex-grow: 1;
        }
        .token-description {
            font-size: 13px;
            color: #6b7280;
            line-height: 1.6;
            margin-top: 12px;
            margin-bottom: 0;
            padding: 0;
        }
        .group-list-area {
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
        }
        .group-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 12px;
        }
        .group-list-header h3 {
            font-size: 18px;
            font-weight: 600;
            color: #111827;
        }
        .group-actions {
            display: flex;
            gap: 12px;
        }
        .action-btn {
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }
        .action-btn.pause {
            background-color: #fef3c7;
            color: #92400e;
            border-color: #fbbf24;
        }
        .action-btn.pause:hover {
            background-color: #fde68a;
        }
        .action-btn.start {
            background-color: #d1fae5;
            color: #065f46;
            border-color: #10b981;
        }
        .action-btn.start:hover {
            background-color: #a7f3d0;
        }
        .action-btn.delete {
            background-color: #fee2e2;
            color: #991b1b;
            border-color: #ef4444;
        }
        .action-btn.delete:hover {
            background-color: #fecaca;
        }
        .action-btn.refresh {
            background-color: #dbeafe;
            color: #1e40af;
            border-color: #3b82f6;
        }
        .action-btn.refresh:hover {
            background-color: #bfdbfe;
        }
        .action-btn.save {
            background-color: #d1fae5;
            color: #065f46;
            border-color: #10b981;
        }
        .action-btn.save:hover {
            background-color: #a7f3d0;
        }
        .action-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .group-table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }
        .group-name-cell {
            word-break: break-word;
            overflow-wrap: break-word;
        }
        .group-table thead {
            background-color: #f9fafb;
            border-bottom: 2px solid #e5e7eb;
        }
        .group-table th {
            padding: 12px;
            text-align: left;
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            white-space: nowrap;
        }
        .group-table td {
            padding: 12px;
            font-size: 14px;
            color: #4b5563;
            border-bottom: 1px solid #f3f4f6;
        }
        .group-table tbody tr:hover {
            background-color: #f9fafb;
        }
        .group-checkbox {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
        .empty-state {
            text-align: center;
            padding: 40px;
            color: #9ca3af;
            font-size: 14px;
        }
        /* Tooltip Icon Styles */
        .tooltip-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            margin-left: 4px;
            cursor: help;
            font-size: 11px;
            font-weight: 600;
            line-height: 1;
            color: #6b7280;
            background-color: #f3f4f6;
            border-radius: 50%;
            position: relative;
            vertical-align: middle;
        }
        .tooltip-icon:hover {
            color: #4f46e5;
            background-color: #e5e7eb;
        }
        /* Editable Input Styles */
        .editable-input {
            width: 100%;
            padding: 6px 8px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-size: 13px;
            color: #111827;
            transition: all 0.2s;
        }
        .editable-input:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
        }
        .editable-select {
            width: 100%;
            padding: 6px 8px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-size: 13px;
            color: #111827;
            background-color: #ffffff;
            cursor: pointer;
            transition: all 0.2s;
        }
        .editable-select:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
        }
        .auto-renewal-select {
            width: auto;
            min-width: auto;
            max-width: 100%;
            white-space: nowrap;
        }
        /* Points Balance Area Styles */
        .points-balance-area {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 32px;
            box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.3), 0 2px 4px -1px rgba(102, 126, 234, 0.2);
            color: #ffffff;
        }
        .points-header h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
            color: #ffffff;
        }
        .points-display {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            backdrop-filter: blur(10px);
            margin-bottom: 16px;
        }
        .points-icon {
            font-size: 48px;
            line-height: 1;
        }
        .points-info {
            flex-grow: 1;
        }
        .points-value {
            font-size: 42px;
            font-weight: 800;
            color: #ffffff;
            line-height: 1;
            margin-bottom: 4px;
        }
        .points-label {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }
        .points-description {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.6;
            margin: 0;
        }
        /* Wallet Display Area Styles */
        .wallet-display-area {
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 24px;
            margin-top: 32px;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
        }
        .wallet-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .wallet-header h3 {
            font-size: 18px;
            font-weight: 600;
            color: #111827;
        }
        .edit-wallet-btn {
            padding: 8px 16px;
            background-color: #4f46e5;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .edit-wallet-btn:hover {
            background-color: #4338ca;
            transform: translateY(-1px);
        }
        .wallet-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
        }
        .wallet-info-item {
            padding: 16px;
            background-color: #f9fafb;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
        }
        .wallet-info-label {
            font-size: 13px;
            font-weight: 600;
            color: #6b7280;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .wallet-info-value {
            font-size: 15px;
            color: #111827;
            font-weight: 500;
            word-break: break-all;
        }
        .wallet-edit-mode {
            display: none;
        }
        .wallet-edit-mode.active {
            display: block;
        }
        .wallet-view-mode.hidden {
            display: none;
        }
        .wallet-form-group {
            margin-bottom: 16px;
        }
        .wallet-form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 8px;
        }
        .wallet-form-group input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            color: #111827;
            transition: border-color 0.2s;
        }
        .wallet-form-group input:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        .wallet-form-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }
        .wallet-save-btn {
            padding: 10px 20px;
            background-color: #10b981;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .wallet-save-btn:hover {
            background-color: #059669;
        }
        .wallet-cancel-btn {
            padding: 10px 20px;
            background-color: #6b7280;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .wallet-cancel-btn:hover {
            background-color: #4b5563;
        }
        /* Wallet Item Styles */
        .wallet-item {
            padding: 16px;
            background-color: #f9fafb;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            margin-bottom: 12px;
            transition: all 0.2s;
        }
        .wallet-item:hover {
            border-color: #4f46e5;
            box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
        }
        .wallet-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .wallet-item-title {
            font-size: 16px;
            font-weight: 600;
            color: #111827;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .wallet-method-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }
        .wallet-method-badge.usdt_tron {
            background-color: #dbeafe;
            color: #1e40af;
        }
        .wallet-method-badge.wechat {
            background-color: #d1fae5;
            color: #065f46;
        }
        .wallet-method-badge.alipay {
            background-color: #fef3c7;
            color: #92400e;
        }
        .wallet-item-actions {
            display: flex;
            gap: 8px;
        }
        .wallet-header-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }
        .wallet-header-time {
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }
        .wallet-header-time .wallet-detail-label {
            margin-bottom: 0;
            font-size: 11px;
        }
        .wallet-header-time .wallet-detail-value {
            font-size: 12px;
            color: #6b7280;
        }
        .wallet-edit-btn,
        .wallet-delete-btn {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }
        .wallet-edit-btn {
            background-color: #dbeafe;
            color: #1e40af;
            border-color: #3b82f6;
        }
        .wallet-edit-btn:hover {
            background-color: #bfdbfe;
        }
        .wallet-delete-btn {
            background-color: #fee2e2;
            color: #991b1b;
            border-color: #ef4444;
        }
        .wallet-delete-btn:hover {
            background-color: #fecaca;
        }
        .wallet-item-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
        }
        .wallet-detail-item {
            font-size: 14px;
        }
        .wallet-detail-label {
            font-size: 12px;
            font-weight: 600;
            color: #6b7280;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .wallet-detail-value {
            font-size: 14px;
            color: #111827;
            overflow-wrap: break-word;
        }
        .wallet-qrcode-image {
            max-width: 150px;
            max-height: 150px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            margin-top: 8px;
        }
        /* Language Dropdown styling */
        .lang-dropdown {
            position: relative;
            display: inline-block;
        }
        .lang-btn {
            padding: 8px 14px;
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            color: #4b5563;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 6px;
            outline: none;
            user-select: none;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        }
        .lang-btn:hover {
            border-color: #4f46e5;
            color: #4f46e5;
            background-color: rgba(79, 70, 229, 0.02);
            box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
        }
        .lang-btn .arrow {
            font-size: 9px;
            color: #9ca3af;
            transition: transform 0.25s ease;
            margin-left: 2px;
        }
        .lang-dropdown.open .lang-btn {
            border-color: #4f46e5;
            color: #4f46e5;
            background-color: rgba(79, 70, 229, 0.02);
        }
        .lang-dropdown.open .lang-btn .arrow {
            transform: rotate(180deg);
            color: #4f46e5;
        }
        .lang-dropdown-menu {
            display: block;
            visibility: hidden;
            opacity: 0;
            transform: translateY(-8px) scale(0.95);
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 8px;
            padding: 6px;
            list-style: none;
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
            min-width: 140px;
            z-index: 1000;
            transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
            transform-origin: top right;
        }
        .lang-dropdown.open .lang-dropdown-menu {
            visibility: visible;
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        .lang-dropdown-menu li {
            padding: 10px 14px;
            font-size: 13px;
            color: #4b5563;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.15s ease;
            text-align: left;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .lang-dropdown-menu li:hover {
            background-color: rgba(79, 70, 229, 0.05);
            color: #4f46e5;
        }
        .lang-dropdown-menu li.active {
            background-color: rgba(79, 70, 229, 0.08);
            color: #4f46e5;
            font-weight: 600;
        }
        .lang-dropdown-menu li.active::after {
            content: "✓";
            font-size: 11px;
            color: #4f46e5;
        }
        main { max-width: 800px; margin: 0 auto; padding: 60px 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
        .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 9999px; background-color: rgba(79, 70, 229, 0.08); color: #4f46e5; font-size: 12px; font-weight: 500; margin-bottom: 24px; border: 1px solid rgba(79, 70, 229, 0.15); }
        h1 {
            font-size: 48px;
            font-weight: 800;
            letter-spacing: -1px;
            color: #111827;
            margin-bottom: 24px;
            line-height: 1.2;
            white-space: nowrap; /* Added for single line display */
            display: inline-block; /* To allow margin:auto to center it if it's wider than parent */
            text-align: center; /* Ensure text is centered within the h1 itself */
        }
        h1 span { background: linear-gradient(to right, #4f46e5, #9333ea); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .hero-desc { font-size: 18px; color: #4b5563; max-width: 550px; margin-bottom: 40px; }
        .btn { display: inline-block; padding: 14px 32px; background-color: #4f46e5; color: #ffffff; font-weight: 600; border-radius: 12px; text-decoration: none; font-size: 14px; transition: all 0.2s; border: none; cursor: pointer; box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2); }
        .btn:hover { background-color: #4338ca; transform: translateY(-1px); }
        .features { max-width: 1000px; width: 100%; margin: 0 auto; padding: 60px 20px; border-top: 1px solid #e5e7eb; }
        .section-title { font-size: 24px; font-weight: 700; text-align: center; color: #111827; margin-bottom: 48px; }
        .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
        .card { padding: 24px; border-radius: 16px; background-color: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); transition: all 0.2s; }
        .card:hover { border-color: rgba(79, 70, 229, 0.4); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
        .card-icon { width: 40px; height: 40px; border-radius: 8px; background-color: rgba(79, 70, 229, 0.08); color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px; font-weight: bold;}
        .card h3 { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 8px; }
        .card p { font-size: 14px; color: #4b5563; }

        .pricing { max-width: 1100px; width: 100%; margin: 0 auto; padding: 60px 20px; border-top: 1px solid #e5e7eb; text-align: center; }
        .pricing p.sub { font-size: 14px; color: #4b5563; margin-bottom: 40px; }
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted for three columns */
            gap: 32px;
            justify-content: center;
            align-items: stretch; /* Ensure all grid items (price-box) have the same height */
        }
        .price-box {
            padding: 32px;
            border-radius: 16px;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            position: relative;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
            display: flex; /* Make price-box a flex container */
            flex-direction: column; /* Stack its children vertically */
            justify-content: space-between; /* Push the button to the bottom */
        }
        .badge-pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 2px 12px; background-color: #4f46e5; color: #ffffff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 9999px; }
        .plan-name { font-size: 14px; color: #4b5563; margin-bottom: 8px; }
        .price { font-size: 48px; font-weight: 900; color: #111827; margin-bottom: 24px; }
        .price span { font-size: 18px; font-weight: 600; color: #9ca3af; }
        .list {
            text-align: left;
            list-style: none;
            padding-top: 24px;
            border-top: 1px solid #f3f4f6;
            margin-bottom: 32px;
            flex-grow: 1; /* Allow the list to grow and push the button down */
        }
        .list li { font-size: 14px; color: #374151; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
        .btn-full { width: 100%; }

        footer { max-width: 1100px; width: 100%; margin: 0 auto; padding: 32px 20px; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #9ca3af; }
        .footer-links { display: flex; gap: 16px; color: #6b7280; }
        .footer-links b { color: #374151; }
        .footer-links a { color: #9ca3af; text-decoration: none; }
        .footer-links a:hover { text-decoration: underline; color: #6b7280; }
        /* Specific styles for configuration steps */
        .config-steps ol { list-style: none; padding: 0; text-align: left; max-width: 700px; margin: 0 auto; }
        .config-steps ol li { margin-bottom: 20px; padding-left: 30px; position: relative; font-size: 16px; color: #374151; line-height: 1.6; }
        .config-steps ol li::before { content: attr(data-step); position: absolute; left: 0; top: 0; background-color: #4f46e5; color: #ffffff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }
        .config-steps ol li strong { color: #111827; }

        /* New styles for scenario list */
        .scenario-list ol { list-style: none; padding: 0; text-align: left; max-width: 700px; margin: 0 auto; }
        .scenario-list ol li { margin-bottom: 15px; padding-left: 25px; position: relative; font-size: 16px; color: #374151; line-height: 1.6; }
        .scenario-list ol li::before { content: attr(data-step); position: absolute; left: 0; top: 0; background-color: #4f46e5; color: #ffffff; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; }

        /* Modal styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            visibility: hidden;
            opacity: 0;
            transition: visibility 0s, opacity 0.3s ease;
        }

        .modal-overlay.visible {
            visibility: visible;
            opacity: 1;
        }

        .modal-content {
            background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
            padding: 48px 40px;
            border-radius: 20px;
            text-align: center;
            max-width: 520px;
            width: 90%;
            position: relative;
            box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(79, 70, 229, 0.1);
            transform: scale(0.95) translateY(10px);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .modal-overlay.visible .modal-content {
            transform: scale(1) translateY(0);
        }

        .modal-content p {
            font-size: 17px;
            color: #374151;
            margin-bottom: 32px;
            line-height: 1.7;
            font-weight: 500;
        }

        .modal-content p a {
            color: #4f46e5;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.2s;
            border-bottom: 2px solid transparent;
        }

        .modal-content p a:hover {
            color: #4338ca;
            border-bottom-color: #4338ca;
        }

        .close-button {
            position: absolute;
            top: 16px;
            right: 20px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            cursor: pointer;
            color: #9ca3af;
            border-radius: 50%;
            transition: all 0.2s;
            background-color: transparent;
        }

        .close-button:hover {
            color: #1f2937;
            background-color: rgba(0, 0, 0, 0.05);
            transform: rotate(90deg);
        }

        /* Reusing .btn style for the modal button */
        .modal-content .btn {
            margin-top: 24px;
            padding: 16px 36px;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 0.3px;
            box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.3);
        }

        .modal-content .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 32px -8px rgba(79, 70, 229, 0.4);
        }

        /* Dynamic content display styles */
        .dynamic-content-display {
            max-width: 800px;
            margin: 40px auto;
            padding: 20px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            display: none; /* Hidden by default */
            flex-grow: 1; /* Allow it to take available space */
            text-align: left; /* Align text left within the container */
        }
        .dynamic-content-display h1 {
            color: #4f46e5;
            text-align: center;
            margin-bottom: 30px;
        }
        .dynamic-content-display h2 {
            color: #1f2937;
            margin-top: 30px;
            margin-bottom: 15px;
        }
        .dynamic-content-display p {
            margin-bottom: 15px;
        }
        .dynamic-content-display ul {
            margin-bottom: 15px;
            padding-left: 20px;
        }
        .dynamic-content-display li {
            margin-bottom: 5px;
        }
        .dynamic-content-display a {
            color: #4f46e5;
            text-decoration: none;
        }
        .dynamic-content-display a:hover {
            text-decoration: underline;
        }

        /* Utility class to hide elements */
        .hidden {
            display: none !important;
        }


        /* ========== Mobile Responsive (Telegram WebApp & Phones) ========== */
        @media (max-width: 640px) {
            /* --- Global --- */
            body { font-size: 14px; }
            h1 { font-size: 28px; white-space: normal; display: block; }
            .hero-desc { font-size: 15px; }
            main { padding: 30px 16px; }
            .features { padding: 30px 16px; }
            .pricing { padding: 30px 16px; }
            .section-title { font-size: 20px; margin-bottom: 24px; }
            .badge { font-size: 11px; }
            .btn { padding: 12px 24px; font-size: 13px; }

            /* --- Header --- */
            header { flex-direction: column; gap: 10px; padding: 12px 16px; }
            .logo { font-size: 18px; }
            .header-logo { height: 32px; }
            .nav-right { flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
            nav { flex-wrap: wrap; gap: 8px 14px; justify-content: center; }
            nav a { font-size: 12px; }
            .lang-btn { padding: 6px 10px; font-size: 12px; }
            #user-name-display { font-size: 12px !important; padding: 4px 10px !important; }

            /* --- Config / Scenario Steps --- */
            .config-steps ol li, .scenario-list ol li { font-size: 14px; }

            /* --- Pricing --- */
            .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
            .price-box { padding: 24px 16px; }
            .price { font-size: 36px; }
            .list li { font-size: 13px; }

            /* --- Footer --- */
            footer { flex-direction: column; text-align: center; padding: 20px 16px; font-size: 11px; }

            /* --- Group Management Section --- */
            .group-management-section { padding: 20px 12px; }
            .points-balance-area { padding: 16px; }
            .points-display { gap: 12px; padding: 14px; }
            .points-icon { font-size: 36px; }
            .points-value { font-size: 32px; }
            .points-label { font-size: 13px; }
            .points-description { font-size: 12px; }

            /* Token Area */
            .token-display-area { padding: 16px; }
            .token-header { flex-direction: column; align-items: flex-start; gap: 10px; }
            .token-header h3 { font-size: 16px; }
            .token-info { flex-direction: column; align-items: flex-start; gap: 6px; }
            .token-label { min-width: auto; }
            .token-value { font-size: 13px; word-break: break-all; }

            /* Group List */
            .group-list-area { padding: 16px 12px; }
            .group-list-header { flex-direction: column; align-items: flex-start; gap: 10px; }
            .group-list-header h3 { font-size: 16px; }
            .group-actions { flex-wrap: wrap; gap: 8px; width: 100%; }
            .action-btn { padding: 6px 12px; font-size: 12px; flex: 1 1 auto; text-align: center; min-width: 80px; }

            /* Group Table - horizontal scroll on mobile */
            .group-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
            .group-table th { font-size: 11px; padding: 8px 6px; }
            .group-table td { padding: 8px 6px; font-size: 13px; }
            .editable-input, .editable-select { font-size: 12px; padding: 4px 6px; }
            .auto-renewal-select { max-width: 120px; }
            .group-notice-text { font-size: 12px !important; }

            /* Wallet Area */
            .wallet-display-area { padding: 16px; margin-top: 20px; }
            .wallet-header { flex-direction: column; align-items: flex-start; gap: 10px; }
            .wallet-header h3 { font-size: 16px; }
            .edit-wallet-btn { width: 100%; text-align: center; }
            .wallet-form-actions { flex-direction: column; }
            .wallet-save-btn, .wallet-cancel-btn { width: 100%; text-align: center; }
            .wallet-item-details { grid-template-columns: 1fr; }
            .wallet-item-actions { flex-wrap: wrap; }

            /* --- Modals --- */
            .modal-content { padding: 30px 20px; max-width: 95%; }
            .modal-content p { font-size: 14px; margin-bottom: 20px; }
            .modal-content .btn { padding: 12px 24px; font-size: 14px; }
            .payment-modal-content { padding: 24px 16px; max-width: 95%; }
            .payment-modal-content h2 { font-size: 20px; }
            .payment-method-option { padding: 14px; }
            .plan-info-name { font-size: 16px; }
            .plan-info-price { font-size: 22px; }
            .quantity-btn { width: 36px; height: 36px; font-size: 18px; }
            .quantity-input { width: 50px; height: 36px; font-size: 16px; }
            .total-amount { font-size: 20px; }
            .confirm-modal-content { padding: 16px 20px; min-width: auto; width: 92%; }
            .confirm-modal-btn { flex: 1; padding: 8px 12px; }

            /* --- Toast --- */
            .toast-container { right: 10px; left: 10px; top: 60px; }
            .toast-message { min-width: auto; max-width: 100%; }

            /* --- Dynamic Content --- */
            .dynamic-content-display { margin: 20px 12px; padding: 16px; }
        }

        /* Payment Method Modal Styles */
        .payment-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1001;
            visibility: hidden;
            opacity: 0;
            transition: visibility 0s, opacity 0.3s ease;
        }

        .payment-modal-overlay.visible {
            visibility: visible;
            opacity: 1;
        }

        .payment-modal-content {
            background-color: #ffffff;
            padding: 40px;
            border-radius: 16px;
            text-align: center;
            max-width: 600px;
            width: 90%;
            position: relative;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }

        .payment-modal-content h2 {
            font-size: 24px;
            color: #111827;
            margin-bottom: 24px;
            font-weight: 700;
        }

        /* Plan Info Display Styles */
        .plan-info-display {
            background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
            border: 2px solid rgba(79, 70, 229, 0.15);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
            text-align: center;
        }

        .plan-info-name {
            font-size: 18px;
            font-weight: 700;
            color: #111827;
            margin-bottom: 8px;
        }

        .plan-info-price {
            font-size: 28px;
            font-weight: 800;
            color: #4f46e5;
        }

        .plan-info-unit {
            font-size: 16px;
            font-weight: 500;
            color: #6b7280;
        }

        /* Quantity Selector Styles */
        .quantity-selector {
            background-color: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
        }

        .quantity-label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 12px;
            text-align: left;
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            margin-bottom: 16px;
        }

        .quantity-btn {
            width: 40px;
            height: 40px;
            border: 2px solid #e5e7eb;
            background-color: #ffffff;
            border-radius: 8px;
            font-size: 20px;
            font-weight: 700;
            color: #4f46e5;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
        }

        .quantity-btn:hover {
            border-color: #4f46e5;
            background-color: rgba(79, 70, 229, 0.05);
            transform: scale(1.05);
        }

        .quantity-btn:active {
            transform: scale(0.95);
        }

        .quantity-input {
            width: 60px;
            height: 40px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            text-align: center;
            font-size: 18px;
            font-weight: 700;
            color: #111827;
            background-color: #ffffff;
            -moz-appearance: textfield;
        }

        .quantity-input::-webkit-outer-spin-button,
        .quantity-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .quantity-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 16px;
            border-top: 1px solid #e5e7eb;
        }

        #total-label {
            font-size: 15px;
            font-weight: 600;
            color: #374151;
        }

        .total-amount {
            font-size: 24px;
            font-weight: 800;
            color: #4f46e5;
        }

        .payment-methods {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 30px;
        }

        .payment-method-option {
            padding: 20px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 16px;
            background-color: #ffffff;
        }

        .payment-method-option:hover {
            border-color: #4f46e5;
            background-color: rgba(79, 70, 229, 0.02);
        }

        .payment-method-option.selected {
            border-color: #4f46e5;
            background-color: rgba(79, 70, 229, 0.05);
        }

        .payment-method-option.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background-color: #f9fafb;
        }

        .payment-method-option.disabled:hover {
            border-color: #e5e7eb;
            background-color: #f9fafb;
        }

        .payment-radio {
            width: 20px;
            height: 20px;
            border: 2px solid #d1d5db;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .payment-method-option.selected .payment-radio {
            border-color: #4f46e5;
        }

        .payment-radio-inner {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #4f46e5;
            display: none;
        }

        .payment-method-option.selected .payment-radio-inner {
            display: block;
        }

        .payment-method-info {
            flex-grow: 1;
            text-align: left;
        }

        .payment-method-title {
            font-size: 16px;
            font-weight: 600;
            color: #111827;
            margin-bottom: 4px;
        }

        .payment-method-desc {
            font-size: 13px;
            color: #6b7280;
        }

        .payment-badge {
            display: inline-block;
            padding: 4px 10px;
            background-color: #f3f4f6;
            color: #6b7280;
            font-size: 11px;
            font-weight: 600;
            border-radius: 6px;
            text-transform: uppercase;
        }

        .payment-badge.coming-soon {
            background-color: #fef3c7;
            color: #92400e;
        }

        .payment-confirm-btn {
            width: 100%;
            padding: 14px 32px;
            background-color: #4f46e5;
            color: #ffffff;
            font-weight: 600;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
            box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
        }

        .payment-confirm-btn:hover {
            background-color: #4338ca;
            transform: translateY(-1px);
        }

        .payment-close-button {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 30px;
            cursor: pointer;
            color: #9ca3af;
        }

        .payment-close-button:hover {
            color: #1f2937;
        }

        /* Mobile overrides merged into the main @media block above */

        /* Toast Notification Styles */
        .toast-container {
            position: fixed;
            top: 80px;
            right: 20px;
            z-index: 9999;
            pointer-events: none;
        }

        .toast-message {
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 12px 20px;
            margin-bottom: 10px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 280px;
            max-width: 500px;
            animation: slideIn 0.3s ease-out;
            pointer-events: auto;
        }

        .toast-message.toast-success {
            border-left: 4px solid #10b981;
        }

        .toast-message.toast-error {
            border-left: 4px solid #ef4444;
        }

        .toast-message.toast-warning {
            border-left: 4px solid #f59e0b;
        }

        .toast-message.toast-info {
            border-left: 4px solid #3b82f6;
        }

        .toast-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .toast-content {
            flex-grow: 1;
            font-size: 14px;
            color: #111827;
            line-height: 1.5;
        }

        .toast-close {
            cursor: pointer;
            color: #9ca3af;
            font-size: 18px;
            line-height: 1;
            padding: 0;
            background: none;
            border: none;
            transition: color 0.2s;
        }

        .toast-close:hover {
            color: #4b5563;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }

        .toast-message.hiding {
            animation: slideOut 0.3s ease-in forwards;
        }

        /* Generic High-Risk Operation Confirmation Modal Styles */
        .confirm-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.15s ease;
        }

        .confirm-modal-overlay.visible {
            display: flex;
            opacity: 1;
        }

        .confirm-modal-content {
            background-color: #ffffff;
            border-radius: 12px;
            padding: 20px 24px;
            max-width: 520px;
            width: 90%;
            min-width: 320px;
            text-align: left;
            border: 1px solid #e5e7eb;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
            transform: scale(0.98);
            transition: transform 0.15s ease;
        }

        .confirm-modal-overlay.visible .confirm-modal-content {
            transform: scale(1);
        }

        .confirm-modal-icon {
            font-size: 28px;
            margin-bottom: 8px;
        }

        .confirm-modal-title {
            font-size: 16px;
            font-weight: 600;
            color: #111827;
            margin-bottom: 6px;
        }

        .confirm-modal-message {
            font-size: 14px;
            color: #6b7280;
            line-height: 1.5;
            margin-bottom: 16px;
        }

        .confirm-modal-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .confirm-modal-btn {
            padding: 6px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.15s, border-color 0.15s;
            border: 1px solid transparent;
        }

        .confirm-modal-cancel {
            background-color: #ffffff;
            color: #374151;
            border-color: #d1d5db;
        }

        .confirm-modal-cancel:hover {
            background-color: #f3f4f6;
            border-color: #9ca3af;
        }

        .confirm-modal-confirm {
            background-color: #ef4444;
            color: #ffffff;
            border-color: #ef4444;
        }

        .confirm-modal-confirm:hover {
            background-color: #dc2626;
        }
