/* Extracted from profile.html style block 1 */
body { background: #f1f5f9; min-height: 100vh; }
    .page { max-width: 780px; margin: 0 auto; padding: 28px 16px; }
    .back-link { display: inline-flex; align-items: center; gap: 6px; color: #6366f1; text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 20px; }
    .back-link:hover { text-decoration: underline; }

    .profile-header { background: linear-gradient(135deg, #6366f1, #4f46e5); border-radius: 20px; padding: 32px 28px; color: #fff; display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
    .avatar-wrap { position: relative; flex-shrink: 0; }
    .avatar { width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; overflow: hidden; border: 3px solid rgba(255,255,255,.35); }
    .avatar img { width: 100%; height: 100%; object-fit: cover; }
    .avatar-edit { position: absolute; bottom: -2px; right: -2px; width: 30px; height: 30px; background: #fff; color: #6366f1; border-radius: 50%; border: 2px solid #6366f1; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: transform .15s; }
    .avatar-edit:hover { transform: scale(1.1); }
    .profile-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
    .profile-header p  { font-size: 14px; opacity: .85; }
    .plan-badge { display: inline-block; background: rgba(255,255,255,.2); border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 700; margin-top: 8px; }

    .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    @media(max-width:600px) { .grid { grid-template-columns: 1fr; } }

    .card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 24px; }
    .card h2 { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

    .form-group { margin-bottom: 16px; }
    .form-group label { display: block; font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
    .form-group input { width: 100%; padding: 11px 14px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 15px; color: #1e293b; transition: border .2s; }
    .form-group input:focus { outline: none; border-color: #6366f1; }
    .form-group input:disabled { background: #f8fafc; color: #94a3b8; }

    .btn-primary { width: 100%; padding: 13px; background: #6366f1; color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
    .btn-primary:hover { background: #4f46e5; }
    .btn-danger { width: 100%; padding: 13px; background: #fff; color: #ef4444; border: 2px solid #fecaca; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .btn-danger:hover { background: #fef2f2; border-color: #ef4444; }

    .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
    .stat-item { background: #f8fafc; border-radius: 12px; padding: 14px 16px; text-align: center; }
    .stat-item .val { font-size: 24px; font-weight: 800; color: #6366f1; }
    .stat-item .lbl { font-size: 11px; color: #94a3b8; font-weight: 600; text-transform: uppercase; margin-top: 2px; }

    .progress-bar { background: #e2e8f0; border-radius: 8px; height: 8px; overflow: hidden; margin: 8px 0; }
    .progress-fill { background: linear-gradient(90deg, #6366f1, #8b5cf6); height: 100%; border-radius: 8px; transition: width .5s; }

    .sub-info { font-size: 13px; color: #64748b; }
    .sub-info strong { color: #1e293b; }

    .alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
    .alert-success { background: #dcfce7; color: #15803d; }
    .alert-error   { background: #fee2e2; color: #b91c1c; }

    .danger-zone { border: 2px solid #fecaca; border-radius: 16px; padding: 20px; margin-top: 20px; }
    .danger-zone h3 { color: #ef4444; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
    .danger-zone p  { font-size: 13px; color: #64748b; margin-bottom: 12px; }

    /* Logo upload */
    .logo-box { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
    .logo-preview { width: 80px; height: 80px; border: 2px dashed #cbd5e1; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 24px; background: #f8fafc; overflow: hidden; flex-shrink: 0; }
    .logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
    .logo-actions { flex: 1; display: flex; flex-direction: column; gap: 6px; }
    .btn-soft { background: #f1f5f9; color: #475569; border: none; border-radius: 8px; padding: 8px 14px; font: 600 13px inherit; cursor: pointer; transition: background .15s; }
    .btn-soft:hover { background: #e2e8f0; }
    .btn-soft.danger { color: #ef4444; }
    .btn-soft.danger:hover { background: #fee2e2; }

    /* Delete modal */
    .del-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
    .del-modal-overlay.open { display: flex; }
    .del-modal { background: #fff; border-radius: 18px; padding: 28px; max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
    .del-modal h3 { color: #ef4444; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
    .del-modal p { color: #475569; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
    .del-modal .warn-list { background: #fef2f2; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
    .del-modal .warn-list li { font-size: 13px; color: #991b1b; margin: 4px 0 4px 20px; }
    .del-modal-actions { display: flex; gap: 10px; margin-top: 8px; }
    .del-modal-actions button { flex: 1; padding: 11px; border-radius: 10px; font: 700 14px inherit; cursor: pointer; border: none; transition: all .15s; }
    .btn-cancel { background: #f1f5f9; color: #475569; }
    .btn-cancel:hover { background: #e2e8f0; }
    .btn-confirm { background: #ef4444; color: #fff; }
    .btn-confirm:hover { background: #dc2626; }
    .btn-confirm:disabled { opacity: .5; cursor: not-allowed; }

    @media(max-width:600px) {
      .page {
        padding: 16px 12px calc(96px + env(safe-area-inset-bottom));
      }
      .back-link { margin-bottom: 14px; }
      .profile-header {
        align-items: flex-start;
        gap: 16px;
        padding: 22px 18px;
        border-radius: 10px;
      }
      .avatar { width: 72px; height: 72px; font-size: 28px; }
      .avatar-edit { width: 30px; height: 30px; }
      .profile-header h1 { font-size: 21px; line-height: 1.2; word-break: break-word; }
      .profile-header p { word-break: break-all; }
      .card { border-radius: 8px; padding: 18px; }
      .card h2 { font-size: 15px; margin-bottom: 16px; }
      .logo-box { align-items: flex-start; }
      .logo-preview { width: 68px; height: 68px; border-radius: 8px; }
      .stat-grid { gap: 10px; }
      .stat-item { border-radius: 8px; padding: 12px 10px; }
      .form-group input { min-height: 44px; font-size: 16px; }
      .danger-zone { border-radius: 8px; padding: 16px; }
      .del-modal-overlay { align-items: flex-end; padding: 0; }
      .del-modal { border-radius: 10px 10px 0 0; max-width: 100%; padding: 22px; }
    }
/* Extracted inline styles from profile.html */
.profile-inline-1 { max-width:960px; margin:0 auto; width:100%; }
.profile-inline-2 { max-width:100%; padding:28px 0; }
.profile-inline-3 { display:none; }
.profile-inline-4 { display:flex;flex-direction:column;gap:20px; }
.profile-inline-5 { font-size:13px;color:#64748b;margin-bottom:14px; }
.profile-inline-6 { display:none; }
.profile-inline-7 { display:none;background:#e0e7ff;color:#4f46e5; }
.profile-inline-8 { display:none; }
.profile-inline-9 { font-size:13px;color:#64748b;margin-bottom:14px; }
.profile-inline-10 { background:#fff;border-style:solid;border-color:#cbd5e1; }
.profile-inline-11 { display:none; }
.profile-inline-12 { display:none;background:#e0e7ff;color:#4f46e5; }
.profile-inline-13 { display:none; }
.profile-inline-14 { font-size:13px;color:#64748b;margin-bottom:14px; }
.profile-inline-15 { background:#fff;border-style:solid;border-color:#cbd5e1; }
.profile-inline-16 { display:none; }
.profile-inline-17 { display:none;background:#e0e7ff;color:#4f46e5; }
.profile-inline-18 { display:none; }
.profile-inline-19 { font-size:13px;color:#64748b;margin-bottom:12px; }
.profile-inline-20 { display:none; }
.profile-inline-21 { display:none;margin-top:14px; }
.profile-inline-22 { font-size:13px;color:#64748b;margin-bottom:10px; }
.profile-inline-23 { display:block;margin:0 auto 14px;background:#fff;padding:10px;border-radius:8px;border:1px solid #e2e8f0; }
.profile-inline-24 { font-size:12px;color:#94a3b8;text-align:center;margin-bottom:14px; }
.profile-inline-25 { background:#f1f5f9;padding:3px 8px;border-radius:4px;font-family:monospace; }
.profile-inline-26 { text-align:center;font-size:20px;letter-spacing:6px; }
.profile-inline-27 { display:none;margin-top:14px;background:#fef3c7;border-radius:10px;padding:14px; }
.profile-inline-28 { color:#92400e; }
.profile-inline-29 { font-family:monospace;font-size:13px;color:#0f172a;margin-top:8px;background:#fff;padding:10px;border-radius:6px; }
.profile-inline-30 { color:#92400e; }
.profile-inline-31 { display:flex;flex-direction:column;gap:20px; }
.profile-inline-32 { width:0%; }
.profile-inline-33 { margin-top:12px; }
.profile-inline-34 { display:block;text-align:center;margin-top:16px;padding:12px;background:#f1f5f9;border-radius:10px;color:#6366f1;font-weight:700;text-decoration:none; }
.profile-inline-35 { margin-top:0; }
.profile-inline-36 { font-size:13px;color:#64748b;margin-bottom:14px; }
.profile-inline-37 { display:block;text-align:center;text-decoration:none; }
.profile-inline-38 { margin-bottom:8px;width:100%;padding:10px; }
.profile-inline-39 { font-size:13px;color:#94a3b8;margin-bottom:8px; }
.profile-inline-40 { width:100%;padding:11px 14px;border:2px solid #e2e8f0;border-radius:10px;font-size:15px;margin-bottom:14px; }
.profile-inline-41 { max-width: 580px; }
.profile-inline-42 { color:#6366f1;font-size:20px;font-weight:800;margin-bottom:8px;display:flex;align-items:center;gap:8px; }
.profile-inline-43 { color:#475569;font-size:13px;line-height:1.5;margin-bottom:16px; }
.profile-inline-44 { background:#e2e8f0;background-image:linear-gradient(45deg,#cbd5e1 25%,transparent 25%),linear-gradient(-45deg,#cbd5e1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#cbd5e1 75%),linear-gradient(-45deg,transparent 75%,#cbd5e1 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border-radius:12px;overflow:hidden;margin-bottom:16px;display:flex;align-items:center;justify-content:center;height:240px;position:relative;border:2px solid #cbd5e1; }
.profile-inline-45 { max-width:100%;max-height:100%;object-fit:contain;cursor:crosshair; }
.profile-inline-46 { position:absolute;top:10px;right:10px;background:rgba(15,23,42,0.8);color:#fff;padding:4px 8px;border-radius:6px;font-size:11px; }
.profile-inline-47 { display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-bottom:16px; }
.profile-inline-48 { display:block;font-size:11px;font-weight:800;color:#64748b;text-transform:uppercase;margin-bottom:6px; }
.profile-inline-49 { display:flex;align-items:center;gap:10px; }
.profile-inline-50 { flex:1;accent-color:#6366f1; }
.profile-inline-51 { font-family:monospace;font-size:13px;font-weight:700;width:30px; }
.profile-inline-52 { display:block;font-size:11px;font-weight:800;color:#64748b;text-transform:uppercase;margin-bottom:6px; }
.profile-inline-53 { display:flex;align-items:center;gap:8px; }
.profile-inline-54 { width:40px;height:32px;border:none;border-radius:6px;cursor:pointer; }
.profile-inline-55 { font-family:monospace;font-size:13px;font-weight:700; }
.profile-inline-56 { background:#6366f1; }
.profile-inline-57 { color:#15803d; }
