/* =====================================================
   Grafibee CV Builder v4.0 — Main CSS
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --p:#1F4E79; --a:#2E75B6; --g:#16A34A; --r:#DC2626;
  --w:#DC2626; --bg:#F1F5F9; --white:#fff; --border:#E2E8F0;
  --text:#1E293B; --muted:#64748B; --light:#F8FAFC;
  --radius:10px; --font:'Inter',sans-serif;
  --sh:0 2px 16px rgba(30,41,59,.08);
  --sh-md:0 4px 24px rgba(30,41,59,.12);
  --sh-lg:0 8px 40px rgba(30,41,59,.18);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;overflow:hidden;}
body{font-family:var(--font);background:var(--bg);color:var(--text);}
body.grb-fullscreen-page{overflow:hidden;}
a{text-decoration:none;color:inherit;}
button{font-family:var(--font);cursor:pointer;}
input,textarea,select{font-family:var(--font);}

/* ══ SHARED BUTTONS ══ */
.grbb-btn,.grbd-btn,.grb-auth-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:9px 18px;border-radius:8px;font-size:13px;font-weight:600;
  border:none;cursor:pointer;transition:all .18s;line-height:1;
  text-decoration:none!important;
}
.grbb-btn-primary,.grbd-btn-primary{background:var(--p);color:#fff!important;}
.grbb-btn-primary:hover,.grbd-btn-primary:hover{background:#163d61;transform:translateY(-1px);}
.grbb-btn-outline,.grbd-btn-outline{background:var(--white);color:var(--p)!important;border:1.5px solid var(--border);}
.grbb-btn-outline:hover,.grbd-btn-outline:hover{border-color:var(--a);}
.grbb-btn-sm,.grbd-btn-sm{padding:5px 12px;font-size:12px;}
.grbb-btn-full,.grbd-btn-full{width:100%;padding:13px;font-size:15px;}
.grbd-btn-danger{background:#FEF2F2;color:var(--r)!important;border:1px solid #FECACA;}
.grbd-btn-danger:hover{background:var(--r);color:#fff!important;}

/* ══ INPUTS ══ */
.grbb-input,.grbd-input,.grb-auth-input{
  width:100%;padding:9px 12px;border:1.5px solid var(--border);
  border-radius:8px;font-size:13px;color:var(--text);
  background:var(--white);outline:none;transition:border-color .15s,box-shadow .15s;
}
.grbb-input:focus,.grbd-input:focus,.grb-auth-input:focus{
  border-color:var(--a);box-shadow:0 0 0 3px rgba(46,117,182,.1);
}
textarea.grbb-input,textarea.grbd-input{resize:vertical;min-height:90px;line-height:1.6;}
select.grbb-input{cursor:pointer;}
.grbb-field,.grbd-field{margin-bottom:12px;}
.grbb-field label,.grbd-field label{display:block;font-size:10px;font-weight:700;color:var(--muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px;}
.grbb-2col,.grbd-2col{display:grid;grid-template-columns:1fr 1fr;gap:10px;}

/* ══ ─────────────────────────────
   AUTH / LOGIN PAGE
───────────────────────────── ══ */
.grb-auth-wrap{width:100%;max-width:440px;padding:20px;}
.grb-auth-logo{text-align:center;margin-bottom:24px;}
.grb-auth-logo h1{font-size:28px;font-weight:800;color:var(--p);}
.grb-auth-tabs{display:flex;background:var(--light);border-radius:10px;padding:4px;margin-bottom:20px;}
.grb-auth-tab{flex:1;padding:9px;border:none;background:none;border-radius:8px;font-weight:600;font-size:13px;color:var(--muted);cursor:pointer;transition:all .15s;}
.grb-auth-tab.active{background:var(--white);color:var(--p);box-shadow:var(--sh);}
.grb-auth-panel{display:none;}
.grb-auth-panel.active{display:block;}
.grb-auth-card{background:var(--white);border-radius:16px;padding:28px;box-shadow:var(--sh-md);}
.grb-auth-card h2{font-size:22px;font-weight:700;margin-bottom:4px;}
.grb-auth-sub{color:var(--muted);font-size:13px;margin-bottom:20px;}
.grb-auth-msg{padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:14px;}
.grb-msg-error{background:#FEF2F2;color:var(--r);border:1px solid #FECACA;}
.grb-msg-success{background:#DCFCE7;color:var(--g);border:1px solid #BBF7D0;}
.grb-auth-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:12px;}
.grb-check-label{display:flex;align-items:center;gap:6px;color:var(--muted);cursor:pointer;}
.grb-auth-link{color:var(--a);font-weight:600;}
.grb-auth-btn{width:100%;padding:12px;background:var(--p);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;margin-bottom:14px;transition:all .18s;}
.grb-auth-btn:hover{background:#163d61;}
.grb-auth-switch{text-align:center;font-size:13px;color:var(--muted);}
.grb-auth-switch a{color:var(--a);font-weight:600;}
.grb-pass-wrap{position:relative;}
.grb-pass-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;font-size:16px;cursor:pointer;color:var(--muted);}

/* ══ ─────────────────────────────
   DASHBOARD
───────────────────────────── ══ */
.grbd-wrap{display:grid;grid-template-columns:240px 1fr;height:100vh;overflow:hidden;}

.grbd-sidebar{background:var(--p);color:#fff;display:flex;flex-direction:column;overflow-y:auto;padding:0;}
.grbd-logo{padding:20px 20px 16px;border-bottom:1px solid rgba(255,255,255,.12);}
.grbd-logo h1,.grbd-logo-text{font-size:20px;font-weight:800;color:#fff;}
.grbd-logo img{max-height:40px;filter:brightness(0) invert(1);}
.grbd-user-info{display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.12);}
.grbd-avatar{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;flex-shrink:0;}
.grbd-user-name{font-size:13px;font-weight:600;color:#fff;}
.grbd-user-email{font-size:11px;color:rgba(255,255,255,.7);word-break:break-all;}
.grbd-nav{padding:12px 10px;flex:1;}
.grbd-nav-item{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:8px;color:rgba(255,255,255,.8);font-size:13px;font-weight:500;margin-bottom:2px;cursor:pointer;transition:all .15s;text-decoration:none!important;}
.grbd-nav-item:hover,.grbd-nav-item.active{background:rgba(255,255,255,.15);color:#fff;}
.grbd-nav-icon{font-size:16px;flex-shrink:0;}
.grbd-nav-logout{margin-top:auto;color:rgba(255,255,255,.6)!important;}
.grbd-nav-logout:hover{background:rgba(220,38,38,.3)!important;color:#fff!important;}

.grbd-main{overflow-y:auto;padding:28px;background:var(--bg);}
.grbd-section{display:none;}
.grbd-section.active{display:block;}
.grbd-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;}
.grbd-section-header h2{font-size:22px;font-weight:700;}
.grbd-section-title{font-size:16px;font-weight:700;margin:24px 0 16px;}
.grbd-section-sub{color:var(--muted);font-size:14px;margin-bottom:20px;}

/* Welcome */
.grbd-welcome{background:var(--white);border-radius:14px;padding:28px;box-shadow:var(--sh);margin-bottom:28px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.grbd-welcome-text h2{font-size:24px;font-weight:700;margin-bottom:8px;}
.grbd-welcome-text p{color:var(--muted);font-size:14px;margin-bottom:18px;}
.grbd-welcome-stats{display:flex;gap:16px;}
.grbd-stat-card{background:var(--bg);border-radius:10px;padding:16px 24px;text-align:center;}
.grbd-stat-num{font-size:28px;font-weight:700;color:var(--p);}
.grbd-stat-lbl{font-size:12px;color:var(--muted);margin-top:2px;}

/* CV Grid */
.grbd-cv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;}
.grbd-cv-card{background:var(--white);border-radius:12px;box-shadow:var(--sh);overflow:hidden;transition:transform .2s,box-shadow .2s;border:1px solid var(--border);}
.grbd-cv-card:hover{transform:translateY(-4px);box-shadow:var(--sh-lg);}
.grbd-cv-thumb{height:140px;position:relative;display:flex;align-items:center;justify-content:center;}
.grbd-cv-photo{width:80px;height:80px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.8);box-shadow:0 4px 12px rgba(0,0,0,.2);}
.grbd-cv-initial{width:70px;height:70px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;color:#fff;}
.grbd-cv-status{position:absolute;top:8px;right:8px;padding:3px 10px;border-radius:20px;font-size:10px;font-weight:700;}
.grbd-paid{background:#DCFCE7;color:var(--g);}
.grbd-draft{background:#FEF9C3;color:#A16207;}
.grbd-cv-info{padding:14px 16px 10px;}
.grbd-cv-name{font-size:15px;font-weight:700;margin-bottom:3px;}
.grbd-cv-role{font-size:12px;color:var(--a);font-weight:500;margin-bottom:5px;}
.grbd-cv-date{font-size:11px;color:var(--muted);}
.grbd-cv-actions{display:flex;gap:7px;padding:10px 16px 14px;border-top:1px solid var(--border);}

/* Empty state */
.grbd-empty{text-align:center;padding:60px 24px;background:var(--white);border-radius:14px;border:2px dashed var(--border);}
.grbd-empty-icon{font-size:48px;margin-bottom:14px;}
.grbd-empty h3{font-size:20px;margin-bottom:8px;}
.grbd-empty p{color:var(--muted);margin-bottom:20px;}

/* Signature */
.grbd-sig-tabs{display:flex;gap:8px;margin-bottom:20px;}
.grbd-sig-tab{padding:8px 20px;border:1.5px solid var(--border);border-radius:20px;background:var(--white);color:var(--muted);font-weight:600;font-size:13px;cursor:pointer;transition:all .15s;}
.grbd-sig-tab.active{background:var(--p);color:#fff;border-color:var(--p);}
.grbd-sig-panel{display:none;}
.grbd-sig-panel.active{display:block;}
.grbd-canvas-wrap{border:2px solid var(--border);border-radius:10px;overflow:hidden;background:#fff;margin-bottom:14px;}
#grbd-sig-canvas{display:block;cursor:crosshair;touch-action:none;}
.grbd-sig-actions{display:flex;gap:10px;margin-bottom:20px;}
.grbd-font-choices{display:flex;flex-direction:column;gap:10px;margin-bottom:14px;}
.grbd-font-choice{display:flex;align-items:center;gap:10px;padding:10px;border:1.5px solid var(--border);border-radius:8px;cursor:pointer;}
.grbd-font-choice input{flex-shrink:0;}
.grbd-sig-preview-wrap{background:var(--white);border:1px solid var(--border);border-radius:8px;padding:16px;min-height:70px;margin-bottom:14px;}
.grbd-saved-sig{margin-top:24px;padding:20px;background:var(--white);border-radius:10px;box-shadow:var(--sh);}
.grbd-saved-sig h4{font-size:14px;font-weight:600;margin-bottom:12px;color:var(--muted);}

/* Cover Letter */
.grbd-cl-card{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:16px;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;box-shadow:var(--sh);}
.grbd-cl-title{font-size:15px;font-weight:600;}
.grbd-cl-date{font-size:12px;color:var(--muted);margin-top:3px;}
.grbd-cl-actions{display:flex;gap:8px;}
.grbd-cl-form{background:var(--white);border-radius:12px;padding:24px;box-shadow:var(--sh-md);margin-top:20px;}
.grbd-cl-editor-btns{display:flex;gap:10px;margin-top:16px;}

/* Dashboard Modal */
.grbd-modal{position:fixed;inset:0;background:rgba(15,23,42,.7);display:flex;align-items:center;justify-content:center;z-index:99999;}
.grbd-modal-box{background:var(--white);border-radius:16px;width:400px;max-width:calc(100vw - 32px);box-shadow:0 24px 80px rgba(0,0,0,.3);overflow:hidden;}
.grbd-modal-top{padding:18px 22px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);}
.grbd-modal-top h3{font-size:17px;}
.grbd-modal-close{width:28px;height:28px;border-radius:50%;border:none;background:var(--light);color:var(--muted);font-size:16px;display:flex;align-items:center;justify-content:center;}
.grbd-modal-body{padding:20px 22px 24px;}
.grbd-price-big{font-size:52px;font-weight:700;color:var(--p);font-family:'Playfair Display',serif;text-align:center;line-height:1;}
.grbd-price-note{text-align:center;color:var(--muted);font-size:12px;margin:6px 0 14px;}
.grbd-modal-perks{list-style:none;margin-bottom:16px;}
.grbd-modal-perks li{padding:7px 0;font-size:13px;border-bottom:1px solid var(--light);}
.grbd-secure-note{text-align:center;font-size:11px;color:var(--muted);margin-top:10px;}

/* ══ ─────────────────────────────
   BUILDER FULL SCREEN
───────────────────────────── ══ */
.grbb-wrap{display:grid;grid-template-rows:52px 1fr;height:100vh;overflow:hidden;}

/* Header */
.grbb-header{background:var(--white);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 16px;height:52px;box-shadow:0 2px 8px rgba(0,0,0,.06);z-index:100;}
.grbb-header-left{display:flex;align-items:center;gap:16px;}
.grbb-back{font-size:12px;color:var(--muted);font-weight:600;padding:5px 10px;border-radius:6px;border:1px solid var(--border);}
.grbb-back:hover{color:var(--p);border-color:var(--p);}
.grbb-site-name{font-size:14px;font-weight:700;color:var(--p);}
.grbb-header-center{display:flex;gap:4px;background:var(--light);padding:4px;border-radius:8px;}
.grbb-header-tab{padding:6px 18px;border:none;background:none;border-radius:6px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;transition:all .15s;}
.grbb-header-tab.active{background:var(--white);color:var(--p);box-shadow:var(--sh);}
.grbb-header-right{display:flex;align-items:center;gap:10px;}
.grbb-save-status{font-size:11px;color:var(--muted);}

/* Body */
.grbb-body{display:grid;grid-template-columns:480px 1fr;overflow:hidden;height:100%;}

/* Left panel */
.grbb-left{overflow-y:auto;background:var(--white);border-right:1px solid var(--border);}
.grbb-view{display:none;}
.grbb-view.active{display:block;}

/* Preset section */
.grbb-preset-section{border-bottom:1px solid var(--border);}
.grbb-preset-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;cursor:pointer;font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;}
.grbb-preset-toggle{background:none;border:none;color:var(--muted);font-size:12px;}
.grbb-preset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px 16px 14px;}
.grbb-preset-card{border:2px solid var(--border);border-radius:10px;overflow:hidden;cursor:pointer;transition:all .18s;}
.grbb-preset-card:hover{border-color:var(--a);}
.grbb-preset-card.active{border-color:var(--p);box-shadow:0 0 0 2px rgba(31,78,121,.2);}
.grbb-preset-thumb{height:80px;position:relative;overflow:hidden;}
.grbb-pt-header{height:22px;}
.grbb-pt-body{padding:8px;}
.grbb-pt-line{height:4px;background:#E2E8F0;border-radius:2px;margin-bottom:4px;}
.grbb-pt-full{width:100%;}.grbb-pt-half{width:55%;}.grbb-pt-three{width:75%;}
.grbb-preset-label{font-size:10px;font-weight:600;padding:5px 8px;display:flex;align-items:center;gap:4px;border-top:1px solid var(--border);}
.grbb-free-tag{background:#DCFCE7;color:var(--g);font-size:9px;padding:1px 5px;border-radius:4px;font-weight:700;}
.grbb-pro-tag{background:#EDE9FE;color:#7C3AED;font-size:9px;padding:1px 5px;border-radius:4px;font-weight:700;}

/* Sections accordion */
.grbb-sections{padding:4px 0 40px;}
.grbb-section-block{border-bottom:1px solid var(--border);}
.grbb-section-head{display:flex;align-items:center;gap:10px;padding:12px 16px;cursor:pointer;font-size:13px;font-weight:600;user-select:none;}
.grbb-section-icon{font-size:16px;flex-shrink:0;}
.grbb-section-toggle{margin-left:auto;background:none;border:none;color:var(--muted);font-size:12px;}
.grbb-section-body{padding:6px 16px 16px;display:block;}
.grbb-section-block.collapsed .grbb-section-body{display:none;}
.grbb-section-block.collapsed .grbb-section-toggle{transform:rotate(180deg);}

.grbb-add-btn{width:100%;padding:9px;border:2px dashed var(--border);border-radius:8px;background:none;color:var(--muted);font-size:12px;font-weight:600;cursor:pointer;transition:all .15s;margin-top:4px;}
.grbb-add-btn:hover{border-color:var(--a);color:var(--a);background:#EEF6FF;}

/* Repeater items */
.grbb-item{background:var(--light);border:1px solid var(--border);border-radius:8px;padding:12px;margin-bottom:10px;position:relative;}
.grbb-item-head{font-size:10px;font-weight:700;color:var(--p);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px;}
.grbb-remove{position:absolute;top:8px;right:8px;background:#FEE2E2;color:var(--r);border:none;width:20px;height:20px;border-radius:50%;font-size:13px;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.grbb-remove:hover{background:var(--r);color:#fff;}

/* Photo upload */
.grbb-photo-upload{display:flex;align-items:center;gap:14px;margin-bottom:14px;padding:14px;background:var(--light);border-radius:10px;}
.grbb-photo-preview{width:72px;height:72px;border-radius:50%;border:2px dashed var(--border);display:flex;align-items:center;justify-content:center;font-size:24px;color:var(--muted);overflow:hidden;flex-shrink:0;cursor:pointer;background:var(--white);}
.grbb-photo-preview img{width:100%;height:100%;object-fit:cover;}
.grbb-photo-info p{font-size:11px;color:var(--muted);margin-top:5px;}
.grbb-show-qr{margin-bottom:12px;}
.grbb-toggle-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;cursor:pointer;}

/* Style View */
.grbb-style-section{padding:16px;}
.grbb-style-block{margin-bottom:24px;}
.grbb-style-block h4{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px;}
.grbb-color-grid{display:flex;gap:16px;}
.grbb-color-item{display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;}
.grbb-color-item input[type="color"]{width:0;height:0;opacity:0;position:absolute;}
.grbb-color-dot{width:40px;height:40px;border-radius:50%;border:3px solid rgba(0,0,0,.1);cursor:pointer;transition:transform .15s;}
.grbb-color-dot:hover{transform:scale(1.1);}
.grbb-color-item span{font-size:10px;font-weight:600;color:var(--muted);}

.grbb-color-themes{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;}
.grbb-theme-chip{width:100%;aspect-ratio:1;border-radius:6px;cursor:pointer;transition:all .15s;border:2px solid transparent;}
.grbb-theme-chip:hover{transform:scale(1.15);box-shadow:var(--sh-md);}
.grbb-theme-chip.active{border-color:var(--text);box-shadow:0 0 0 2px var(--text);}

.grbb-style-cards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;}
.grbb-style-card{border:2px solid var(--border);border-radius:10px;overflow:hidden;cursor:pointer;transition:all .18s;}
.grbb-style-card:hover{border-color:var(--a);}
.grbb-style-card.active{border-color:var(--p);box-shadow:0 0 0 2px rgba(31,78,121,.2);}
.grbb-style-thumb{height:70px;background:var(--light);padding:8px;}
.grbb-style-name{font-size:10px;font-weight:600;padding:6px 8px;display:flex;align-items:center;gap:4px;border-top:1px solid var(--border);}

/* Preview */
.grbb-right{display:flex;flex-direction:column;overflow:hidden;background:#D4DCE8;}
.grbb-preview-bar{padding:10px 20px;background:#17283F;color:#fff;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;flex-shrink:0;}
.grbb-zoom-btns{display:flex;align-items:center;gap:8px;}
.grbb-zoom-btns button{width:24px;height:24px;border-radius:5px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center;}
.grbb-zoom-btns button:hover{background:rgba(255,255,255,.25);}
#grbb-zoom-val{font-size:11px;min-width:32px;text-align:center;}
.grbb-preview-scroll{flex:1;overflow-y:auto;overflow-x:auto;padding:24px;display:flex;justify-content:center;align-items:flex-start;}
.grbb-a4-outer{transform-origin:top center;display:block;transition:width .15s,height .15s;}
.grbb-a4{width:794px;min-height:1123px;background:#fff;box-shadow:0 8px 40px rgba(0,0,0,.22);overflow:visible;}

/* Builder Modal */
.grbb-modal{position:fixed;inset:0;background:rgba(15,23,42,.7);display:flex;align-items:center;justify-content:center;z-index:99999;animation:grb-fade .2s ease;}
@keyframes grb-fade{from{opacity:0}to{opacity:1}}
.grbb-modal-box{background:var(--white);border-radius:16px;width:400px;max-width:calc(100vw - 32px);box-shadow:0 24px 80px rgba(0,0,0,.3);animation:grb-up .25s ease;overflow:hidden;}
@keyframes grb-up{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
.grbb-modal-top{padding:18px 22px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);}
.grbb-modal-top h3{font-size:17px;}
.grbb-modal-close{width:28px;height:28px;border-radius:50%;border:none;background:var(--light);font-size:16px;display:flex;align-items:center;justify-content:center;}
.grbb-modal-body{padding:20px 22px 24px;}
.grbb-price-big{font-size:52px;font-weight:700;color:var(--p);font-family:'Playfair Display',serif;text-align:center;line-height:1;}
.grbb-price-note{text-align:center;color:var(--muted);font-size:12px;margin:6px 0 14px;}
.grbb-modal-perks{list-style:none;margin-bottom:16px;}
.grbb-modal-perks li{padding:7px 0;font-size:13px;border-bottom:1px solid var(--light);}
.grbb-modal-perks li::before{content:'✓ ';color:var(--g);font-weight:700;}
.grbb-secure{text-align:center;font-size:11px;color:var(--muted);margin-top:10px;}

/* Print */
@media print { @page{size:A4 portrait;margin:0;} }

/* ── HIDE WP Admin bar & fix fullscreen height ── */
body.grb-fullscreen-page #wpadminbar { display: none !important; }
body.grb-fullscreen-page { margin-top: 0 !important; padding-top: 0 !important; }
body.grb-fullscreen-page html { margin-top: 0 !important; }

/* ══ AI SUMMARY GENERATOR ══ */
.grbb-ai-bar{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#EEF2FF,#E0E7FF);border:1.5px solid #C7D2FE;border-radius:10px;padding:10px 14px;margin-bottom:12px;}
.grbb-ai-info{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#3730A3;}
.grbb-ai-icon{font-size:18px;}
.grbb-ai-btn{background:linear-gradient(135deg,#4F46E5,#7C3AED);color:#fff;border:none;padding:8px 16px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer;transition:all .18s;white-space:nowrap;}
.grbb-ai-btn:hover{background:linear-gradient(135deg,#4338CA,#6D28D9);transform:translateY(-1px);box-shadow:0 4px 12px rgba(79,70,229,.3);}
.grbb-ai-btn:disabled{opacity:.6;cursor:not-allowed;transform:none;}
.grbb-ai-status{padding:8px 12px;border-radius:8px;font-size:12px;margin-bottom:10px;}
.grbb-ai-loading{background:#EEF2FF;color:#4F46E5;border:1px solid #C7D2FE;}
.grbb-ai-success{background:#DCFCE7;color:#16A34A;border:1px solid #BBF7D0;}
.grbb-ai-error{background:#FEF2F2;color:#DC2626;border:1px solid #FECACA;}

/* ══ NEW TEMPLATE PREVIEW STYLES ══ */
.grbb-thumb-timeline .grbb-pt-header{background:linear-gradient(135deg,#1E3A5F,#2563EB);height:18px;}
.grbb-thumb-photoleft .grbb-pt-header{background:linear-gradient(90deg,#1F2937 35%,#fff 35%);height:80px;}
.grbb-thumb-corporate .grbb-pt-header{background:#003566;height:24px;}
.grbb-thumb-teal .grbb-pt-header{background:linear-gradient(135deg,#134E4A,#0D9488);height:20px;}
.grbb-thumb-orange .grbb-pt-header{background:linear-gradient(135deg,#7C2D12,#EA580C);height:20px;}
.grbb-thumb-single .grbb-pt-header{background:#1F4E79;height:3px;}
.grbb-thumb-rosegold .grbb-pt-header{background:linear-gradient(135deg,#831843,#EC4899);height:22px;}
.grbb-thumb-darkpro .grbb-pt-header{background:#0F172A;height:80px;}
.grbb-thumb-infographic .grbb-pt-header{background:linear-gradient(135deg,#065F46,#10B981);height:20px;}
.grbb-thumb-photoright .grbb-pt-header{background:linear-gradient(270deg,#312E81 35%,#fff 35%);height:80px;}
