/* Full-country flags and verified GrowID form; shared by visitor + owner.
   Same 4:3 flag artwork, mask, and overlay in DC and full public profiles. */
.gph-dialog .gph-hero{
 margin:14px 14px 0!important;border-radius:18px!important;
 border:1px solid rgba(188,218,255,.24)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.12),0 10px 28px rgba(0,8,27,.17);
}
.gph-dialog .gph-hero.gph-hero-with-flag{
 position:relative;isolation:isolate;overflow:hidden;
 background:linear-gradient(110deg,rgba(55,95,154,.32),rgba(23,45,83,.62))!important;
 border-bottom:1px solid rgba(188,218,255,.21);
}
.gph-dialog .gph-hero.gph-hero-with-flag::before,
.gph-dialog .gph-appearance-preview.gph-appearance-has-flag::before{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 background-image:var(--gtt-profile-banner);
 /* Preserve each flag ribbon's natural 12:1 geometry on narrow screens.
    Stretching it into a different ratio deforms emblems, stars and bands. */
 background-size:auto 100%;background-repeat:no-repeat;background-position:left center;
 opacity:.65;filter:saturate(115%);image-rendering:auto;
 -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 21%,rgba(0,0,0,.88) 38%,rgba(0,0,0,.60) 55%,rgba(0,0,0,.26) 73%,transparent 95%);
 mask-image:linear-gradient(90deg,#000 0%,#000 21%,rgba(0,0,0,.88) 38%,rgba(0,0,0,.60) 55%,rgba(0,0,0,.26) 73%,transparent 95%);
}
.gph-dialog .gph-hero.gph-hero-with-flag::after,
.gph-dialog .gph-appearance-preview.gph-appearance-has-flag::after{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 background:linear-gradient(90deg,rgba(8,21,47,.35),rgba(10,25,50,.27) 38%,rgba(15,35,66,.10) 72%,rgba(20,39,74,.12)),
 linear-gradient(180deg,rgba(5,16,34,.05),rgba(4,11,26,.20));
}
.gph-dialog .gph-hero.gph-hero-with-flag>*,.gph-dialog .gph-appearance-preview.gph-appearance-has-flag>*{position:relative;z-index:1}
.gph-dialog .gph-hero.gph-hero-with-flag :is(h2,.gph-eyebrow){text-shadow:0 1px 6px rgba(0,8,25,.5)}
.gph-dialog .gph-hero.gph-hero-with-flag .gph-header-stat{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);background:linear-gradient(125deg,rgba(39,68,110,.55),rgba(16,35,67,.73))}
.gph-dialog .gph-appearance-preview.gph-appearance-has-flag{position:relative;isolation:isolate;overflow:hidden}
.gph-dialog .gph-appearance-preview .gph-flag,
.gph-dialog .gph-hero .gph-flag,
body[data-theme="glass"] #modal-root .v5-profile-dialog .v63-profile-country,
body[data-theme="glass"] #content .v161-flag{display:none!important}

/* One explicit searchable country picker, never 253 long scrolling options. */
.gph-dialog .gph-country-field{display:grid;gap:8px;min-width:0}
.gph-dialog .gph-country-field label{color:#a9c9e4;font-size:12px;font-weight:740;margin:0}
.gph-dialog .gph-country-field input[type="search"]{
 box-sizing:border-box;min-width:0;width:100%;height:44px;
 border:1px solid rgba(152,205,249,.34);border-radius:10px;
 background:#102d4d;color:#f0f9ff;font-size:13px;outline-offset:3px;padding:10px 13px;
}
.gph-dialog .gph-country-field input[type="search"]:focus{border-color:#8bd4ff}
.gph-dialog .gph-country-field input[type="search"]:invalid{border-color:rgba(255,180,103,.72)}
.gph-dialog .gph-country-field small{color:#88abc9;font-size:10px;line-height:1.5}
body[data-theme="glass"] #modal-root #v65-country-search{
 box-sizing:border-box;width:100%;min-width:0;min-height:43px;padding:10px 13px;
 background:#112f50;color:#e8f5ff;border:1px solid rgba(152,205,249,.35);border-radius:10px;
 font-size:12px;
}
body[data-theme="glass"] #modal-root .v65-setting-grid label small{font-size:10px;color:#91b9d8;line-height:1.5;display:block;margin-top:5px}

/* Verification: proper responsive fields, clear steps and feedback. */
.gph-dialog .gph-growid-link.gph-verify-v2{
 display:grid;gap:22px;min-width:0;max-width:100%;padding:clamp(17px,3vw,28px);
 border:1px solid rgba(143,204,250,.28);border-radius:16px;
 background:radial-gradient(ellipse at 6% 0,rgba(55,133,204,.16),transparent 58%),rgba(11,36,63,.54);
}
.gph-dialog .gph-verify-header{display:flex;align-items:center;justify-content:space-between;gap:22px}
.gph-dialog .gph-verify-header h3{font-size:clamp(20px,2.4vw,27px);line-height:1.2;margin:6px 0 10px;color:#f0f9ff}
.gph-dialog .gph-verify-header p{max-width:650px;color:#b0c9df;font-size:12px;line-height:1.6;margin:0}
.gph-dialog .gph-verify-header img{width:60px;height:60px;flex:0 0 60px;object-fit:contain;image-rendering:pixelated}
.gph-dialog .gph-verify-steps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
.gph-dialog .gph-verify-steps-grid>div{min-width:0;padding:16px;border-radius:12px;border:1px solid rgba(143,199,239,.18);
 background:linear-gradient(145deg,rgba(57,106,159,.22),rgba(13,41,72,.35))}
.gph-dialog .gph-step-number{display:inline-grid;place-items:center;width:25px;height:25px;margin-bottom:8px;
 background:rgba(81,170,241,.23);border:1px solid rgba(146,212,249,.35);border-radius:9px;color:#d7f2ff;font-size:12px;font-weight:800}
.gph-dialog .gph-verify-steps-grid b{display:block;color:#e9f7ff;font-size:12px}
.gph-dialog .gph-verify-steps-grid p{margin:6px 0 0;color:#a6c5db;line-height:1.55;font-size:11px}
.gph-dialog .gph-verify-form{display:grid;gap:17px;max-width:100%;min-width:0;
 padding:19px;border:1px solid rgba(144,207,255,.24);border-radius:13px;background:rgba(6,26,50,.38)}
.gph-dialog .gph-verify-form-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:17px;align-items:start}
.gph-dialog .gph-verify-field{display:grid!important;align-content:start;gap:9px;min-width:0;margin:0!important;color:#afcfe6}
.gph-dialog .gph-verify-field label{margin:0!important;padding:0;color:#afcfe6}
.gph-dialog .gph-verify-field b{font-weight:750;font-size:12px;color:#d8efff}
.gph-dialog .gph-verify-field input[type="text"],
.gph-dialog .gph-verify-field input[name="growid"]{
 box-sizing:border-box;width:100%;min-width:0;height:46px;padding:11px 13px;
 border:1px solid rgba(147,201,244,.37)!important;border-radius:10px;
 background:rgba(10,32,57,.9)!important;color:#f6fbff!important;font-size:13px!important;
}
.gph-dialog .gph-verify-field input[type="file"]{
 display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:46px;
 padding:5px!important;border:1px dashed rgba(157,212,250,.44);border-radius:10px;
 background:rgba(12,43,72,.62);color:#c7e2f3;font-size:11px!important;
 overflow:hidden;text-overflow:ellipsis;
}
.gph-dialog .gph-verify-field input[type="file"]::file-selector-button{
 border:1px solid rgba(143,206,254,.37);border-radius:8px;min-height:34px;
 background:rgba(64,134,205,.34);color:#e6f5ff;font-weight:750;font-size:12px;
 padding:7px 11px;cursor:pointer;margin-right:12px;
}
.gph-dialog .gph-verify-field input[type="file"]::file-selector-button:hover{background:rgba(83,164,232,.48)}
.gph-dialog .gph-verify-field small{font-size:10px;color:#9db9d4;line-height:1.5}
.gph-dialog .gph-verify-submit{width:fit-content;max-width:100%;min-height:44px}
.gph-dialog .gph-verify-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;
 border-top:1px solid rgba(151,203,242,.16);padding-top:14px}
.gph-dialog .gph-verify-footer span{font-size:10px;line-height:1.5;color:#95b6cf}
.gph-dialog .gph-verify-footer button{flex:0 0 auto;font-size:11px!important}
.gph-dialog .gph-verify-state{display:flex;align-items:center;gap:13px;padding:15px;
 border:1px solid rgba(122,183,239,.29);border-radius:12px;background:rgba(30,82,127,.24);min-width:0}
.gph-dialog .gph-verify-state>img{width:34px;height:34px;object-fit:contain}
.gph-dialog .gph-verify-state>span{font-size:25px;color:#94d4ff}
.gph-dialog .gph-verify-state b{font-size:14px;color:#eaf8ff}
.gph-dialog .gph-verify-state p{margin:6px 0 0;font-size:11px;color:#a8cadd;line-height:1.5}
@media(max-width:760px){
 .gph-dialog .gph-verify-steps-grid{grid-template-columns:1fr;gap:8px}
 .gph-dialog .gph-verify-steps-grid>div{padding:11px 14px;display:grid;grid-template-columns:25px 1fr;column-gap:11px;align-items:center}
 .gph-dialog .gph-step-number{grid-column:1;grid-row:1/3;margin:0}
 .gph-dialog .gph-verify-steps-grid b{grid-column:2}
 .gph-dialog .gph-verify-steps-grid p{grid-column:2;margin-top:2px}
 .gph-dialog .gph-verify-form-fields{grid-template-columns:1fr;gap:16px}
}
@media(max-width:520px){
 .gph-dialog .gph-growid-link.gph-verify-v2{padding:15px;gap:16px}
 .gph-dialog .gph-verify-header img{width:44px;height:44px;flex-basis:44px}
 .gph-dialog .gph-verify-header h3{font-size:20px}
 .gph-dialog .gph-verify-form{padding:13px}
 .gph-dialog .gph-verify-submit{width:100%}
 .gph-dialog .gph-verify-footer{align-items:stretch;flex-direction:column}
 .gph-dialog .gph-verify-footer button{width:fit-content}
 .gph-dialog .gph-verify-field input[type="file"]::file-selector-button{margin-right:7px}
}
